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

Function test_raises_accepts_generic_group

testing/code/test_excinfo.py:470–473  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

468
469
470def test_raises_accepts_generic_group() -> None:
471 with pytest.raises(ExceptionGroup[Exception]) as exc_info:
472 raise ExceptionGroup("", [RuntimeError()])
473 assert exc_info.group_contains(RuntimeError)
474
475
476def test_raises_accepts_generic_base_group() -> None:

Callers

nothing calls this directly

Calls 1

group_containsMethod · 0.80

Tested by

no test coverage detected