Skip to content

Commit 8ce94b9

Browse files
committed
test: simulate the failure from issue #1481
1 parent 5fc2085 commit 8ce94b9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/test_config.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,10 +244,13 @@ def test_environment_vars_in_toml_config(self):
244244
"x${NOTHING}y",
245245
"huh$${X}what",
246246
]
247+
[othersection]
248+
something = "if [ $OTHER ]; then printf '%s\\n' 'Hi'; fi"
247249
""")
248250
self.set_environ("BRANCH", "true")
249251
self.set_environ("DATA_FILE", "hello-world")
250252
self.set_environ("THING", "ZZZ")
253+
self.set_environ("OTHER", "hi\\zebra")
251254
cov = coverage.Coverage()
252255
assert cov.config.data_file == "hello-world.fooey"
253256
assert cov.config.branch is True

0 commit comments

Comments
 (0)