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

Function test_excinfo_from_exc_info_simple

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

Source from the content-addressed store, hash-verified

45
46
47def test_excinfo_from_exc_info_simple() -> None:
48 try:
49 raise ValueError
50 except ValueError as e:
51 assert e.__traceback__ is not None
52 info = _pytest._code.ExceptionInfo.from_exc_info((type(e), e, e.__traceback__))
53 assert info.type == ValueError
54
55
56def test_excinfo_getstatement():

Callers

nothing calls this directly

Calls 1

from_exc_infoMethod · 0.80

Tested by

no test coverage detected