We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
ExceptionInfo.group_contains
1 parent 83614e1 commit c5e3921Copy full SHA for c5e3921
src/_pytest/_code/code.py
@@ -788,6 +788,8 @@ def group_contains(
788
If `None`, will search for a matching exception at any nesting depth.
789
If >= 1, will only match an exception if it's at the specified depth (depth = 1 being
790
the exceptions contained within the topmost exception group).
791
+
792
+ .. versionadded:: 8.0
793
"""
794
msg = "Captured exception is not an instance of `BaseExceptionGroup`"
795
assert isinstance(self.value, BaseExceptionGroup), msg
0 commit comments