diff options
-rw-r--r-- | setup.cfg | 3 | ||||
-rw-r--r-- | tests/conftest.py | 18 |
2 files changed, 1 insertions, 20 deletions
@@ -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, |