summaryrefslogtreecommitdiff
path: root/tests/test_config.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_config.py')
-rw-r--r--tests/test_config.py5
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):