test_ok2/changelog/9036.bugfix.rst

2 lines
113 B
ReStructuredText

``pytest.warns`` and similar functions now capture warnings when an exception is raised inside a ``with`` block.