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

Method _start

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

Source from the content-addressed store, hash-verified

814 self._captured_err = self.captureclass.EMPTY_BUFFER
815
816 def _start(self) -> None:
817 if self._capture is None:
818 self._capture = MultiCapture(
819 in_=None,
820 out=self.captureclass(1),
821 err=self.captureclass(2),
822 )
823 self._capture.start_capturing()
824
825 def close(self) -> None:
826 if self._capture is not None:

Callers 5

activate_fixtureMethod · 0.80
capsysFunction · 0.80
capsysbinaryFunction · 0.80
capfdFunction · 0.80
capfdbinaryFunction · 0.80

Calls 2

MultiCaptureClass · 0.85
start_capturingMethod · 0.80

Tested by

no test coverage detected