MCPcopy
hub / github.com/pytest-dev/pytest / matches

Method matches

src/_pytest/raises.py:1082–1085  ·  view source on GitHub ↗
(
        self: RaisesGroup[ExcT_1],
        exception: BaseException | None,
    )

Source from the content-addressed store, hash-verified

1080
1081 @overload
1082 def matches(
1083 self: RaisesGroup[ExcT_1],
1084 exception: BaseException | None,
1085 ) -> TypeGuard[ExceptionGroup[ExcT_1]]: ...
1086 @overload
1087 def matches(
1088 self: RaisesGroup[BaseExcT_1],

Callers 2

__exit__Method · 0.95
test_matchesFunction · 0.95

Calls 7

_check_expectedMethod · 0.95
_unroll_exceptionsMethod · 0.95
_repr_expectedMethod · 0.95
_check_exceptionsMethod · 0.95
_match_patternFunction · 0.85
_check_matchMethod · 0.80
_check_checkMethod · 0.80

Tested by 1

test_matchesFunction · 0.76