Skip to content

Commit 6303d3f

Browse files
committed
Fix test test_curly_braces_in_setenv
The internal state of SetenvDict depends on curly brackets being escaped.
1 parent 6a59be5 commit 6303d3f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/unit/config/test_config.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2094,9 +2094,12 @@ def test_curly_braces_in_setenv(self, newconfig):
20942094
[testenv]
20952095
setenv =
20962096
VAR = \{val\}
2097+
commands =
2098+
{env:VAR}
20972099
"""
20982100
configs = newconfig([], inisource).envconfigs
2099-
assert configs["python"].setenv["VAR"] == "{val}"
2101+
assert configs["python"].setenv["VAR"] == r"\{val\}"
2102+
assert configs["python"].commands[0] == ["{val}"]
21002103

21012104
def test_factor_use_not_checked(self, newconfig):
21022105
inisource = """

0 commit comments

Comments
 (0)