-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
[BUG] filterwarnings does not filter out DeprecationWarnings from 3rd party libraries #6417
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
there isn't really much |
Thanks - I'll do that. |
I think this is still an issue, or construct does the same naughty thing in a different way since I wasn't able to find any hits with Minimal example: pytest.ini: [pytest]
filterwarning =
ignore::DeprecationWarning Simple test test_bar.py: import construct
def test_foo():
assert True Pytest shows an unexpected warning:
Upstream got rid of Pip list:
|
the setting is |
I could've sworn this worked yesterday. And it did before I c&p'd my |
I've encountered some strange behaviour when trying to suppress warnings in 3rd party libraries. It might be related to this numpy issue.
Here's a minimal example:
pytest.ini:
And a simple test test_foo.py:
When I run
pytest
, I get an unexpected warning:Output of pip list:
Thanks in advance for any help & advice you can give!
The text was updated successfully, but these errors were encountered: