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

Method suspend

src/_pytest/capture.py:680–683  ·  view source on GitHub ↗
(self, in_: bool = False)

Source from the content-addressed store, hash-verified

678 self._global_capturing.suspend_capturing(in_=in_)
679
680 def suspend(self, in_: bool = False) -> None:
681 # Need to undo local capsys-et-al if it exists before disabling global capture.
682 self.suspend_fixture()
683 self.suspend_global_capture(in_)
684
685 def resume(self) -> None:
686 self.resume_global_capture()

Callers 4

suspendMethod · 0.45
suspend_capturingMethod · 0.45
_init_pdbMethod · 0.45

Calls 2

suspend_fixtureMethod · 0.95

Tested by 1