1 new commit in tox:

https://bitbucket.org/hpk42/tox/commits/b50e77c3d2ca/
Changeset:   b50e77c3d2ca
User:        hpk42
Date:        2014-10-12 15:21:32+00:00
Summary:     Merged in 
suor/tox/alex_gaynor/allow-in-factor-names-for-multidimensio-1411745805716 
(pull request #124)

Finished "." in factor names pull-request
Affected #:  2 files

diff -r e89dddec56e6c5844aeb6cc50ea5e2956f53bca6 -r 
b50e77c3d2ca888b609f540176422d79804fd9ae tests/test_config.py
--- a/tests/test_config.py
+++ b/tests/test_config.py
@@ -910,6 +910,21 @@
         assert configs["py27"].setenv["X"] == "1"
         assert "X" not in configs["py26"].setenv
 
+    def test_period_in_factor(self, newconfig):
+        inisource="""
+            [tox]
+            envlist = py27-{django1.6,django1.7}
+
+            [testenv]
+            deps =
+                django1.6: Django==1.6
+                django1.7: Django==1.7
+        """
+        configs = newconfig([], inisource).envconfigs
+        assert sorted(configs) == ["py27-django1.6", "py27-django1.7"]
+        assert [d.name for d in configs["py27-django1.6"].deps] \
+            == ["Django==1.6"]
+
 
 class TestGlobalOptions:
     def test_notest(self, newconfig):

diff -r e89dddec56e6c5844aeb6cc50ea5e2956f53bca6 -r 
b50e77c3d2ca888b609f540176422d79804fd9ae tox/_config.py
--- a/tox/_config.py
+++ b/tox/_config.py
@@ -305,7 +305,7 @@
         factors = set()
         if section in self._cfg:
             for _, value in self._cfg[section].items():
-                exprs = re.findall(r'^([\w{},-]+)\:\s+', value, re.M)
+                exprs = re.findall(r'^([\w{}\.,-]+)\:\s+', value, re.M)
                 factors.update(*mapcat(_split_factor_expr, exprs))
         return factors
 
@@ -642,7 +642,7 @@
 
     def _apply_factors(self, s):
         def factor_line(line):
-            m = re.search(r'^([\w{},-]+)\:\s+(.+)', line)
+            m = re.search(r'^([\w{}\.,-]+)\:\s+(.+)', line)
             if not m:
                 return line

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.
_______________________________________________
pytest-commit mailing list
pytest-commit@python.org
https://mail.python.org/mailman/listinfo/pytest-commit

Reply via email to