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>2022-02-04 06:38:50 -0500
commit340c56ba503f0000bf684110c2a8c8ade9d5d60b (patch)
tree9713c428526e29df9a113ae20a41ed5e9c98ff12 /tests/conftest.py
parentcf712c665dffcd2e1e939b9eb079974449437828 (diff)
downloadpython-coveragepy-git-340c56ba503f0000bf684110c2a8c8ade9d5d60b.tar.gz
refactor(test): a context manager to swallow warnings
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 16999d96..39f39e25 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -45,6 +45,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)