summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tox/config.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/tox/config.py b/tox/config.py
index 55cd699..37e9260 100644
--- a/tox/config.py
+++ b/tox/config.py
@@ -928,11 +928,12 @@ class SectionReader:
return env_list.get(envkey, default)
def _build_envs_list(self):
- full_envs = self._cfg[self.section_name].get('setenv', False)
- if full_envs:
- return {k.split('=')[0]: k.split('=')[1] for k in full_envs.split('\n')}
- else:
- return {}
+ 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: