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

Class PdbInvoke

src/_pytest/debugging.py:285–300  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

283
284
285class PdbInvoke:
286 def pytest_exception_interact(
287 self, node: Node, call: "CallInfo[Any]", report: BaseReport
288 ) -> None:
289 capman = node.config.pluginmanager.getplugin("capturemanager")
290 if capman:
291 capman.suspend_global_capture(in_=True)
292 out, err = capman.read_global_capture()
293 sys.stdout.write(out)
294 sys.stdout.write(err)
295 assert call.excinfo is not None
296 _enter_pdb(node, call.excinfo, report)
297
298 def pytest_internalerror(self, excinfo: ExceptionInfo[BaseException]) -> None:
299 tb = _postmortem_traceback(excinfo)
300 post_mortem(tb)
301
302
303class PdbTrace:

Callers 1

pytest_configureFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected