You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Python 3.11 deprecation] Stop using importlib.resources.path #183
E DeprecationWarning: path is deprecated. Use files() instead. Refer to importlib-resources.readthedocs.io/en/latest/using.html#migrating-from-legacy for migration advice.
changed the title [-][good first issue][Python 3.11 deprecation] Stop using `importlib.resources.path`[/-][+][Python 3.11 deprecation] Stop using `importlib.resources.path`[/+]on Jan 12, 2022
FWIW, for those coming here from Google, here's what you can do in the pytest configuration when running it with filterwarnings = error under Python 3.11, per the best practices:
filterwarnings =
error
# FIXME: drop once certifi fixes their use of `importlib.resources`# Ref: https://github.com/certifi/python-certifi/issues/183
ignore:path is deprecated. Use files.. instead. Refer to https.//importlib-resources.readthedocs.io/en/latest/using.html#migrating-from-legacy for migration advice.:DeprecationWarning:certifi.core
Activity
Suppress importlib `DeprecationWarning` in certifi
Suppress importlib `DeprecationWarning` in certifi
[-][good first issue][Python 3.11 deprecation] Stop using `importlib.resources.path`[/-][+][Python 3.11 deprecation] Stop using `importlib.resources.path`[/+]sigmavirus24 commentedon Jan 12, 2022
Duplicate of #170. In the future, please search closed and open issues before creating new ones that are duplicates.
webknjaz commentedon Jan 12, 2022
Ah, I missed the closed one.
FWIW, for those coming here from Google, here's what you can do in the pytest configuration when running it with
filterwarnings = errorunder Python 3.11, per the best practices: