From e7bf21651633237b485cdf02ba7a2be004e97f1a Mon Sep 17 00:00:00 2001 From: Sebastian Meyer Date: Tue, 19 Mar 2024 23:54:26 +0100 Subject: [PATCH] doc: add versionadded to `ExceptionInfo.group_contains` (#12141) --- 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 64a8f243a..3b4a62a4f 100644 --- a/src/_pytest/_code/code.py +++ b/src/_pytest/_code/code.py @@ -786,6 +786,8 @@ class ExceptionInfo(Generic[E]): 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