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

Method _start

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

Source from the content-addressed store, hash-verified

934 self._captured_err: AnyStr = self.captureclass.EMPTY_BUFFER
935
936 def _start(self) -> None:
937 if self._capture is None:
938 self._capture = MultiCapture(
939 in_=None,
940 out=self.captureclass(1, **self._config),
941 err=self.captureclass(2, **self._config),
942 )
943 self._capture.start_capturing()
944
945 def close(self) -> None:
946 if self._capture is not None:

Callers 7

capturing_outputFunction · 0.95
capsysFunction · 0.95
capteesysFunction · 0.95
capsysbinaryFunction · 0.95
capfdFunction · 0.95
capfdbinaryFunction · 0.95
activate_fixtureMethod · 0.80

Calls 2

MultiCaptureClass · 0.85
start_capturingMethod · 0.80

Tested by 1

capturing_outputFunction · 0.76