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

Function test_excinfo_from_exc_info_simple

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

Source from the content-addressed store, hash-verified

52
53
54def test_excinfo_from_exc_info_simple() -> None:
55 try:
56 raise ValueError
57 except ValueError as e:
58 assert e.__traceback__ is not None
59 info = _pytest._code.ExceptionInfo.from_exc_info((type(e), e, e.__traceback__))
60 assert info.type == ValueError
61
62
63def test_excinfo_from_exception_simple() -> None:

Callers

nothing calls this directly

Calls 1

from_exc_infoMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…