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

Method writeorg

src/_pytest/capture.py:575–578  ·  view source on GitHub ↗

Write to original file descriptor.

(self, data: bytes)

Source from the content-addressed store, hash-verified

573 return res # type: ignore[return-value]
574
575 def writeorg(self, data: bytes) -> None:
576 """Write to original file descriptor."""
577 self._assert_state("writeorg", ("started", "suspended"))
578 os.write(self.targetfd_save, data)
579
580
581class FDCapture(FDCaptureBase[str]):

Callers

nothing calls this directly

Calls 2

_assert_stateMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected