Tests if a captured exception group contains an expected exception. Will raise `AssertionError` if the wrapped exception is not an exception group. Supports recursive search into nested exception groups.
3 lines
169 B
ReStructuredText
3 lines
169 B
ReStructuredText
Added :func:`ExceptionInfo.group_contains() <pytest.ExceptionInfo.group_contains>`, an assertion
|
|
helper that tests if an `ExceptionGroup` contains a matching exception.
|