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

Method start_capturing

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

Source from the content-addressed store, hash-verified

646 )
647
648 def start_capturing(self) -> None:
649 self._state = "started"
650 if self.in_:
651 self.in_.start()
652 if self.out:
653 self.out.start()
654 if self.err:
655 self.err.start()
656
657 def pop_outerr_to_orig(self) -> tuple[AnyStr, AnyStr]:
658 """Pop current snapshot out/err capture and flush to orig streams."""

Callers 6

runpytest_inprocessMethod · 0.80
_startMethod · 0.80
getcaptureMethod · 0.80
test_manyMethod · 0.80

Calls 1

startMethod · 0.45

Tested by 4

runpytest_inprocessMethod · 0.64
getcaptureMethod · 0.64
test_manyMethod · 0.64