MCPcopy Create free account
hub / github.com/pytest-dev/pytest / test_raises_accepts_generic_base_group

Function test_raises_accepts_generic_base_group

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

Source from the content-addressed store, hash-verified

474
475
476def test_raises_accepts_generic_base_group() -> None:
477 with pytest.raises(BaseExceptionGroup[BaseException]) as exc_info:
478 raise ExceptionGroup("", [RuntimeError()])
479 assert exc_info.group_contains(RuntimeError)
480
481
482def test_raises_rejects_specific_generic_group() -> None:

Callers

nothing calls this directly

Calls 1

group_containsMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…