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

Method suspend_capturing

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

Source from the content-addressed store, hash-verified

557 return out, err
558
559 def suspend_capturing(self, in_: bool = False) -> None:
560 self._state = "suspended"
561 if self.out:
562 self.out.suspend()
563 if self.err:
564 self.err.suspend()
565 if in_ and self.in_:
566 self.in_.suspend()
567 self._in_suspended = True
568
569 def resume_capturing(self) -> None:
570 self._state = "started"

Callers 2

_suspendMethod · 0.80

Calls 1

suspendMethod · 0.45

Tested by

no test coverage detected