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
#9288: warns() now re-emits unmatched warnings when the context closes – previously it would consume all warnings, hiding those that were not matched by the function.
While this is a new feature, we announce it as a breaking change because many test suites are configured to error-out on warnings, and will therefore fail on the newly-re-emitted warnings.
since I just got a test failure because of this that looks exactly like this issue:
We now have pytest 8.0.0 on some of our CI runs and I point out, from the 8.0.0 changelog (currently https://docs.pytest.org/en/stable/changelog.html ) the following nugget
#9288: warns() now re-emits unmatched warnings when the context closes – previously it would consume all warnings, hiding those that were not matched by the function.
While this is a new feature, we announce it as a breaking change because many test suites are configured to error-out on warnings, and will therefore fail on the newly-re-emitted warnings.
since I just got a test failure because of this that looks exactly like this issue:
The text was updated successfully, but these errors were encountered: