[Pytest-commit] commit/tox: hpk42: Merged in jayvdb/tox (pull request #185)
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Mon Jun 20 12:19:03 EDT 2016
1 new commit in tox:
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.
More information about the pytest-commit
mailing list