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

Function post_mortem

src/_pytest/debugging.py:399–404  ·  view source on GitHub ↗
(tb_or_exc: types.TracebackType | BaseException)

Source from the content-addressed store, hash-verified

397
398
399def post_mortem(tb_or_exc: types.TracebackType | BaseException) -> None:
400 p = pytestPDB._init_pdb("post_mortem")
401 p.reset()
402 p.interaction(None, tb_or_exc)
403 if p.quitting:
404 outcomes.exit("Quitting debugger")

Callers 2

pytest_internalerrorMethod · 0.85
_enter_pdbFunction · 0.85

Calls 3

_init_pdbMethod · 0.80
resetMethod · 0.45
interactionMethod · 0.45

Tested by

no test coverage detected