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

Class PdbInvoke

src/_pytest/debugging.py:286–301  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

pytest_configureFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected