Skip to content

Commit 6badb6f

Browse files
lesnekZac-HD
andcommitted
Apply suggestions from code review
chore(changelog): describe better the fix Co-authored-by: Zac Hatfield-Dodds <[email protected]>
1 parent 4517af1 commit 6badb6f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

changelog/10701.bugfix.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
``pytest.WarningsRecorder.pop`` now also pop most recent subclass of warning.
1+
:meth:`pytest.WarningsRecorder.pop` will return the most-closely-matched warning in the list,
2+
rather than the first warning which is an instance of the requested type.

0 commit comments

Comments
 (0)