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

Method suspend_capturing

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

Source from the content-addressed store, hash-verified

666 return out, err
667
668 def suspend_capturing(self, in_: bool = False) -> None:
669 self._state = "suspended"
670 if self.out:
671 self.out.suspend()
672 if self.err:
673 self.err.suspend()
674 if in_ and self.in_:
675 self.in_.suspend()
676 self._in_suspended = True
677
678 def resume_capturing(self) -> None:
679 self._state = "started"

Callers 2

_suspendMethod · 0.80

Calls 1

suspendMethod · 0.45

Tested by

no test coverage detected