diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2021-04-14 15:23:41 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2021-04-14 15:23:41 -0400 |
commit | 5f7d6c4272143b6e860074422c4e89390684807e (patch) | |
tree | 2646bb6a753175624e5cc23b829ba83f8206f8a1 | |
parent | 416b9169185cb5b6c9674f5fbb541fe2b567cecb (diff) | |
download | python-coveragepy-git-5f7d6c4272143b6e860074422c4e89390684807e.tar.gz |
build: suppress new 3.10 warnings
-rw-r--r-- | tests/conftest.py | 11 |
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. |