summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2022-01-04 12:41:08 -0500
committerNed Batchelder <ned@nedbatchelder.com>2022-01-04 12:41:08 -0500
commit163e6c91c20931092f9ba60a627f9e20599e63cf (patch)
treea419103679903405d28852169c1351865b2c5db8
parent69af2a71929c60f31f629b36b180a86df5ca0564 (diff)
downloadpython-coveragepy-git-163e6c91c20931092f9ba60a627f9e20599e63cf.tar.gz
build: adjust the warning suppressions we need
-rw-r--r--setup.cfg3
-rw-r--r--tests/conftest.py18
2 files changed, 1 insertions, 20 deletions
diff --git a/setup.cfg b/setup.cfg
index e13f4835..f1cb7a8a 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -9,10 +9,9 @@ markers =
# How come these warnings are suppressed successfully here, but not in conftest.py??
filterwarnings =
- ignore:dns.hash module will be removed:DeprecationWarning
- ignore:Using or importing the ABCs:DeprecationWarning
ignore:the imp module is deprecated in favour of importlib:DeprecationWarning
ignore:distutils Version classes are deprecated:DeprecationWarning
+ ignore:The distutils package is deprecated and slated for removal in Python 3.12:DeprecationWarning
# xfail tests that pass should fail the test suite
xfail_strict = true
diff --git a/tests/conftest.py b/tests/conftest.py
index 23d6b213..16999d96 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -39,24 +39,6 @@ def set_warnings():
# Warnings to suppress:
# How come these warnings are successfully suppressed here, but not in setup.cfg??
- # <frozen importlib._bootstrap>:681:
- # ImportWarning: VendorImporter.exec_module() not found; falling back to load_module()
- warnings.filterwarnings(
- "ignore",
- category=ImportWarning,
- message=r".*exec_module\(\) not found; falling back to load_module\(\)",
- )
- # <frozen importlib._bootstrap>:908:
- # ImportWarning: AssertionRewritingHook.find_spec() not found; falling back to find_module()
- # <frozen importlib._bootstrap>:908:
- # ImportWarning: _SixMetaPathImporter.find_spec() not found; falling back to find_module()
- # <frozen importlib._bootstrap>:908:
- # ImportWarning: VendorImporter.find_spec() not found; falling back to find_module()
- warnings.filterwarnings(
- "ignore",
- category=ImportWarning,
- message=r".*find_spec\(\) not found; falling back to find_module\(\)",
- )
warnings.filterwarnings(
"ignore",
category=DeprecationWarning,