summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/conftest.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/conftest.py b/tests/conftest.py
index 11d7aece..201a6e0e 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -56,6 +56,17 @@ def set_warnings():
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\(\)",
+ )
if env.PYPY3:
# pypy3 warns about unclosed files a lot.