summaryrefslogtreecommitdiff
path: root/tests/conftest.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2021-05-31 14:36:08 -0400
committerNed Batchelder <ned@nedbatchelder.com>2021-05-31 14:38:07 -0400
commit65d9e0edbca0dc893ca70fbf64969e2ddc5a3680 (patch)
tree406eac9e175c8a92e9d36d1e417e5681247fd4b0 /tests/conftest.py
parente1cd8f8cf2c958ef0a7915011c58d3c1d9fdb64c (diff)
downloadpython-coveragepy-git-65d9e0edbca0dc893ca70fbf64969e2ddc5a3680.tar.gz
test: better checking for CoverageWarnings
On Python 3.10, we were getting other warnings mixed into the warnings the tests were looking for. This change lets us only look at the CoverageWarnings.
Diffstat (limited to 'tests/conftest.py')
-rw-r--r--tests/conftest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/conftest.py b/tests/conftest.py
index c84f446a..4ae11542 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -27,7 +27,7 @@ pytest.register_assert_rewrite("tests.helpers")
@pytest.fixture(autouse=True)
def set_warnings():
- """Enable DeprecationWarnings during all tests."""
+ """Configure warnings to show while running tests."""
warnings.simplefilter("default")
warnings.simplefilter("once", DeprecationWarning)