test_ok2/changelog/10701.bugfix.rst

3 lines
168 B
ReStructuredText
Raw Normal View History

:meth:`pytest.WarningsRecorder.pop` will return the most-closely-matched warning in the list,
rather than the first warning which is an instance of the requested type.