2 new commits in tox:

https://bitbucket.org/hpk42/tox/commits/882d74573ce7/
Changeset:   882d74573ce7
User:        jayvdb
Date:        2015-12-25 22:16:05+00:00
Summary:     Unescape \{..\}
Affected #:  2 files

diff -r 2d5d0e7584cc4cc35cc7e0519ce9610dd52b7a62 -r 
882d74573ce74dceb5d0314e00d4c4a253f218a9 tests/test_config.py
--- a/tests/test_config.py
+++ b/tests/test_config.py
@@ -1015,12 +1015,12 @@
         """
         conf = newconfig([], inisource).envconfigs['py27']
         argv = conf.commands
-        assert argv[0] == ['echo', '\\{posargs\\}', '=']
+        assert argv[0] == ['echo', '{posargs}', '=']
         assert argv[1] == ['echo', 'posargs = ', ""]
 
         conf = newconfig(['dog', 'cat'], inisource).envconfigs['py27']
         argv = conf.commands
-        assert argv[0] == ['echo', '\\{posargs\\}', '=', 'dog', 'cat']
+        assert argv[0] == ['echo', '{posargs}', '=', 'dog', 'cat']
         assert argv[1] == ['echo', 'posargs = ', 'dog cat']
 
     def test_rewrite_posargs(self, tmpdir, newconfig):

diff -r 2d5d0e7584cc4cc35cc7e0519ce9610dd52b7a62 -r 
882d74573ce74dceb5d0314e00d4c4a253f218a9 tox/config.py
--- a/tox/config.py
+++ b/tox/config.py
@@ -1129,6 +1129,7 @@
             new_arg = ""
             new_word = reader._replace(word)
             new_word = reader._replace(new_word)
+            new_word = new_word.replace('\\{', '{').replace('\\}', '}')
             new_arg += new_word
             newcommand += new_arg
 


https://bitbucket.org/hpk42/tox/commits/57d04ea3a5ad/
Changeset:   57d04ea3a5ad
User:        hpk42
Date:        2016-06-20 16:19:01+00:00
Summary:     Merged in jayvdb/tox (pull request #185)

Unescape \{..\} according to docs.
Affected #:  2 files

diff -r 73a25603c38b7c171e956457dca52a41b44c3e3e -r 
57d04ea3a5ad1a02093822e32f4b1afb734299bd tests/test_config.py
--- a/tests/test_config.py
+++ b/tests/test_config.py
@@ -1106,12 +1106,12 @@
         """
         conf = newconfig([], inisource).envconfigs['py27']
         argv = conf.commands
-        assert argv[0] == ['echo', '\\{posargs\\}', '=']
+        assert argv[0] == ['echo', '{posargs}', '=']
         assert argv[1] == ['echo', 'posargs = ', ""]
 
         conf = newconfig(['dog', 'cat'], inisource).envconfigs['py27']
         argv = conf.commands
-        assert argv[0] == ['echo', '\\{posargs\\}', '=', 'dog', 'cat']
+        assert argv[0] == ['echo', '{posargs}', '=', 'dog', 'cat']
         assert argv[1] == ['echo', 'posargs = ', 'dog cat']
 
     def test_rewrite_posargs(self, tmpdir, newconfig):

diff -r 73a25603c38b7c171e956457dca52a41b44c3e3e -r 
57d04ea3a5ad1a02093822e32f4b1afb734299bd tox/config.py
--- a/tox/config.py
+++ b/tox/config.py
@@ -1165,6 +1165,7 @@
             new_arg = ""
             new_word = reader._replace(word)
             new_word = reader._replace(new_word)
+            new_word = new_word.replace('\\{', '{').replace('\\}', '}')
             new_arg += new_word
             newcommand += new_arg

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