Files
pytest2/changelog/9288.breaking.rst
Zac Hatfield-Dodds 2d48171e88 Tweak docs on review
2023-06-30 15:29:03 -07:00

8 lines
385 B
ReStructuredText

: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.