MCPcopy Index your code
hub / github.com/pytest-dev/pytest / check_basic_contextmanager

Function check_basic_contextmanager

testing/typing_raises_group.py:35–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33
34
35def check_basic_contextmanager() -> None:
36 with RaisesGroup(ValueError) as e:
37 raise ExceptionGroup("foo", (ValueError(),))
38 assert_type(e.value, ExceptionGroup[ValueError])
39
40
41def check_basic_matches() -> None:

Callers

nothing calls this directly

Calls 1

RaisesGroupClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…