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

Method readouterr

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

Source from the content-addressed store, hash-verified

703 return self._state == "started"
704
705 def readouterr(self) -> CaptureResult[AnyStr]:
706 out = self.out.snap() if self.out else ""
707 err = self.err.snap() if self.err else ""
708 # TODO: This type error is real, need to fix.
709 return CaptureResult(out, err) # type: ignore[arg-type]
710
711
712def _get_multicapture(method: _CaptureMethod) -> MultiCapture[str]:

Callers 15

pop_outerr_to_origMethod · 0.95
runpytest_inprocessMethod · 0.45
read_global_captureMethod · 0.45
closeMethod · 0.45
readouterrMethod · 0.45
test_notify_exceptionFunction · 0.45

Calls 2

CaptureResultClass · 0.85
snapMethod · 0.45