summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2021-10-12 17:06:52 -0400
committerNed Batchelder <ned@nedbatchelder.com>2021-10-12 17:09:51 -0400
commitde00789a23dc030fbbcd4814ff3478c307b70bb4 (patch)
treeab27c5a25b03166c63705f322bfd468618abd8e8
parente982dacef6cf67035c0d57a959e24c1bd4205fb1 (diff)
downloadpython-coveragepy-git-de00789a23dc030fbbcd4814ff3478c307b70bb4.tar.gz
test: we really don't want to hear about imp being deprecated
-rw-r--r--tests/conftest.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/conftest.py b/tests/conftest.py
index 75adf3f2..d3fd1538 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -51,6 +51,11 @@ def set_warnings():
category=ImportWarning,
message=r".*find_spec\(\) not found; falling back to find_module\(\)",
)
+ warnings.filterwarnings(
+ "ignore",
+ category=DeprecationWarning,
+ message=r".*imp module is deprecated in favour of importlib",
+ )
if env.PYPY:
# pypy3 warns about unclosed files a lot.