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
-Werror
-related test failures with pytest 8.x
#9025
Comments
Thanks for reporting these. Are you interested in opening another PR to help us fix these issues? |
I'm afraid I wasn't able to find a good solution here. |
No worries. We can take a look after the 2.7 release! Adding this to the 2.8 milestone. |
Maybe I'll try experimenting a bit later today, if I feel better. |
Ok, so I suppose we could workaround all of them by adding |
@sydney-runkle, I've made a WIP #9040. I'd appreciate if you could take a look and let me know if that approach is acceptable. |
Ok, a few questions:
Is there a point in emitting
|
Initial Checks
Description
This is the final set of test failures with pytest-8:
FWIU they happen because of
filterwarnings = error
. This is because prior to pytest-8,pytest.warns()
would always consume all warnings. Withpytest >= 8
, it consumes only matching warnings and reemits the rest, so they get caught by-Werror
.Example Code
No response
Python, Pydantic & OS Version
The text was updated successfully, but these errors were encountered: