diff options
author | Itxaka <itxakaserrano@gmail.com> | 2015-10-30 09:49:50 +0100 |
---|---|---|
committer | Itxaka <itxakaserrano@gmail.com> | 2015-10-30 09:49:50 +0100 |
commit | 77eb5d72a28abbe4455bc96526808a283f9049d3 (patch) | |
tree | 667ae5f08c846995af09ea062590d1fdd92a8b0f | |
parent | 441b4b4db38bf761a6fb66b38c984dfddf6db38f (diff) | |
download | tox-fix_env_use.tar.gz |
use self.getdict('setenv') instead of extra parsing that failsfix_env_use
-rw-r--r-- | tox/config.py | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/tox/config.py b/tox/config.py index 37e9260..cd7a84d 100644 --- a/tox/config.py +++ b/tox/config.py @@ -903,7 +903,7 @@ class SectionReader: return '\n'.join(filter(None, map(factor_line, lines))) def _replace_env(self, match): - env_list = self._build_envs_list() + env_list = self.getdict('setenv') match_value = match.group('substitution_value') if not match_value: raise tox.exception.ConfigError( @@ -927,14 +927,6 @@ class SectionReader: else: return env_list.get(envkey, default) - def _build_envs_list(self): - full_envs = self.getargvlist('setenv') - return_data = {} - for item in full_envs: - splitted = " ".join(item).split("=") - return_data[splitted[0]] = splitted[1] - return return_data - def _substitute_from_other_section(self, key): if key.startswith("[") and "]" in key: i = key.find("]") |