diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2023-02-22 17:13:40 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2023-02-22 17:13:49 -0500 |
commit | cc0c0ea4b2af02e8bf4c21f708afa6988e1b4fda (patch) | |
tree | 3501e36fd9249b1b6a81cfcc35ef867120ca86d7 /tests | |
parent | 2a0e7bc17f932e33ef9c437760ae2f9f60b46390 (diff) | |
download | python-coveragepy-git-cc0c0ea4b2af02e8bf4c21f708afa6988e1b4fda.tar.gz |
docs: final paperwork for exclude_also #1557
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_config.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/test_config.py b/tests/test_config.py index 2befa2e3..6739a426 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -452,11 +452,12 @@ class ConfigTest(CoverageTest): def test_exclude_also(self) -> None: self.make_file("pyproject.toml", """\ [tool.coverage.report] - exclude_also = ["foobar"] + exclude_also = ["foobar", "raise .*Error"] """) cov = coverage.Coverage() - assert cov.config.exclude_list == coverage.config.DEFAULT_EXCLUDE + ["foobar"] + expected = coverage.config.DEFAULT_EXCLUDE + ["foobar", "raise .*Error"] + assert cov.config.exclude_list == expected class ConfigFileTest(UsingModulesMixin, CoverageTest): |