From c9b5d827ddcbd2c8a06c858cb1dc54fe827eec6e Mon Sep 17 00:00:00 2001 From: bastimeyer Date: Tue, 19 Mar 2024 21:51:20 +0100 Subject: [PATCH] doc: add versionadded to `ExceptionInfo.group_contains` --- src/_pytest/_code/code.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/_pytest/_code/code.py b/src/_pytest/_code/code.py index 64a8f243a2d..3b4a62a4fa0 100644 --- a/src/_pytest/_code/code.py +++ b/src/_pytest/_code/code.py @@ -786,6 +786,8 @@ def group_contains( If `None`, will search for a matching exception at any nesting depth. If >= 1, will only match an exception if it's at the specified depth (depth = 1 being the exceptions contained within the topmost exception group). + + .. versionadded:: 8.0 """ msg = "Captured exception is not an instance of `BaseExceptionGroup`" assert isinstance(self.value, BaseExceptionGroup), msg