Skip to content

Commit c5e3921

Browse files
[8.1.x] doc: add versionadded to ExceptionInfo.group_contains (#12142)
Co-authored-by: Sebastian Meyer <mail@bastimeyer.de>
1 parent 83614e1 commit c5e3921

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/_pytest/_code/code.py

+2
Original file line numberDiff line numberDiff line change
@@ -788,6 +788,8 @@ def group_contains(
788788
If `None`, will search for a matching exception at any nesting depth.
789789
If >= 1, will only match an exception if it's at the specified depth (depth = 1 being
790790
the exceptions contained within the topmost exception group).
791+
792+
.. versionadded:: 8.0
791793
"""
792794
msg = "Captured exception is not an instance of `BaseExceptionGroup`"
793795
assert isinstance(self.value, BaseExceptionGroup), msg

0 commit comments

Comments
 (0)