Replies: 1 comment
-
I'm thinking something like a pytest_filterwarnings hook would be nice. It could allow warnings to be filtered globally, but happen in a plugin such that it could have runtime effects. Perhaps it should have two phases, to hook in before and after the warning filters are processed from config. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In pypa/setuptools#2865 (comment), I'm attempting to filter out warnings for select environments (Python 3.10+ or PyPy). However, I find that if I try to
warnings.filterwarnings
in conftest.py, the settings are superseded by settings in pytest.ini.filterwarnings. Is there a supported way to filter warnings on these select enviroments to be applied after the global warning filters are applied?Beta Was this translation helpful? Give feedback.
All reactions