diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2022-10-27 06:36:11 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2022-10-28 06:28:33 -0400 |
commit | 89aabf3e008082d1ace0efafda2bdb1c0b93a78b (patch) | |
tree | 4c0b7397fc3df2757b00ccee3ca90167592626f5 /tests/test_config.py | |
parent | b53db01273ca811bd6faa50559f331b3dbeec471 (diff) | |
download | python-coveragepy-git-89aabf3e008082d1ace0efafda2bdb1c0b93a78b.tar.gz |
test: simulate the failure from issue #1481
Diffstat (limited to 'tests/test_config.py')
-rw-r--r-- | tests/test_config.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_config.py b/tests/test_config.py index 6aa43511..8db781b0 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -230,6 +230,7 @@ class ConfigTest(CoverageTest): assert cov.config.branch is True assert cov.config.exclude_list == ["the_$one", "anotherZZZ", "xZZZy", "xy", "huh${X}what"] + @pytest.mark.xfail(reason="updated to demonstrate bug #1481") def test_environment_vars_in_toml_config(self): # Config files can have $envvars in them. self.make_file("pyproject.toml", """\ @@ -244,10 +245,13 @@ class ConfigTest(CoverageTest): "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 |