test_ok2/changelog/9288.breaking.rst

8 lines
385 B
ReStructuredText
Raw Normal View History

2023-07-01 06:29:03 +08:00
:func:`pytest.warns <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 decided to announce this 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.