summaryrefslogtreecommitdiff
path: root/tests/conftest.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2021-12-09 12:24:12 -0500
committerNed Batchelder <ned@nedbatchelder.com>2021-12-12 15:36:37 -0500
commitb8a2153e8711d0275f71e9e66e566d49750e8360 (patch)
tree917f481f91866864156cd3cb53d1c03e7e8706cb /tests/conftest.py
parent03d9059877ffe148966e2c0022b3275eb6c02cfd (diff)
downloadpython-coveragepy-git-nedbat/pytest-7.tar.gz
refactor(test): a context manager to swallow warningsnedbat/pytest-7
Diffstat (limited to 'tests/conftest.py')
-rw-r--r--tests/conftest.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/conftest.py b/tests/conftest.py
index 23d6b213..9189aa5c 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -63,6 +63,11 @@ def set_warnings():
message=r".*imp module is deprecated in favour of importlib",
)
+ warnings.filterwarnings(
+ "ignore",
+ category=pytest.PytestRemovedIn8Warning,
+ )
+
if env.PYPY:
# pypy3 warns about unclosed files a lot.
warnings.filterwarnings("ignore", r".*unclosed file", category=ResourceWarning)