diff options
-rw-r--r-- | tests/test_config.py | 4 | ||||
-rw-r--r-- | tox/config.py | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/tests/test_config.py b/tests/test_config.py index c31ca4f..2b81fa3 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -1106,12 +1106,12 @@ class TestConfigTestEnv: """ 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 --git a/tox/config.py b/tox/config.py index bc7ca02..8823ad1 100644 --- a/tox/config.py +++ b/tox/config.py @@ -1165,6 +1165,7 @@ class _ArgvlistReader: 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 |