From 8ce94b9da04edd60c7b1a8822a2cae0bb6c1f95e Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Thu, 27 Oct 2022 06:36:11 -0400 Subject: [PATCH] test: simulate the failure from issue #1481 --- tests/test_config.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test_config.py b/tests/test_config.py index 6aa435112..25e718187 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -244,10 +244,13 @@ def test_environment_vars_in_toml_config(self): "x${NOTHING}y", "huh$${X}what", ] + [othersection] + something = "if [ $OTHER ]; then printf '%s\\n' 'Hi'; fi" """) self.set_environ("BRANCH", "true") self.set_environ("DATA_FILE", "hello-world") self.set_environ("THING", "ZZZ") + self.set_environ("OTHER", "hi\\zebra") cov = coverage.Coverage() assert cov.config.data_file == "hello-world.fooey" assert cov.config.branch is True