[Pytest-commit] commit/tox: Anthon van der Neut: dash_e_all: fixes failing test caused by -e change
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Thu Aug 8 13:25:44 CEST 2013
1 new commit in tox:
https://bitbucket.org/hpk42/tox/commits/580f5e65abd6/
Changeset: 580f5e65abd6
User: Anthon van der Neut
Date: 2013-08-08 12:15:31
Summary: dash_e_all: fixes failing test caused by -e change
Affected #: 1 file
diff -r abcc1ea8aee7aad33494dba87bee100f0467787d -r 580f5e65abd6aeed9c608d59f888b02bae8ee22a tox/_config.py
--- a/tox/_config.py
+++ b/tox/_config.py
@@ -342,16 +342,17 @@
if not envlist:
envlist = self.config.envconfigs.keys()
return envlist
- if env == "ALL":
+ envlist = _split_env(env)
+ if "ALL" in envlist:
envlist = list(self.config.envconfigs)
envlist.sort()
- else:
- envlist = _split_env(env)
return envlist
def _split_env(env):
"""if handed a list, action="append" was used for -e """
envlist = []
+ if not isinstance(env, list):
+ env = [env]
for to_split in env:
for single_env in to_split.split(","):
# "remove True or", if not allowing multiple same runs, update tests
Repository URL: https://bitbucket.org/hpk42/tox/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
More information about the pytest-commit
mailing list