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

Method resume

src/_pytest/capture.py:550–556  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

548 self._state = "suspended"
549
550 def resume(self) -> None:
551 self._assert_state("resume", ("started", "suspended"))
552 if self._state == "started":
553 return
554 self.syscapture.resume()
555 os.dup2(self.tmpfile.fileno(), self.targetfd)
556 self._state = "started"
557
558
559class FDCaptureBinary(FDCaptureBase[bytes]):

Callers

nothing calls this directly

Calls 3

_assert_stateMethod · 0.95
resumeMethod · 0.45
filenoMethod · 0.45

Tested by

no test coverage detected