From c5e3921b9fef2619a3e2c7e3e07a5cc8015005d7 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 19 Mar 2024 23:11:22 +0000 Subject: [PATCH] [8.1.x] doc: add versionadded to `ExceptionInfo.group_contains` (#12142) Co-authored-by: Sebastian Meyer --- 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 12168be607c..2e3c4ba64fc 100644 --- a/src/_pytest/_code/code.py +++ b/src/_pytest/_code/code.py @@ -788,6 +788,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