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

Method start_capturing

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

Source from the content-addressed store, hash-verified

539 )
540
541 def start_capturing(self) -> None:
542 self._state = "started"
543 if self.in_:
544 self.in_.start()
545 if self.out:
546 self.out.start()
547 if self.err:
548 self.err.start()
549
550 def pop_outerr_to_orig(self) -> Tuple[AnyStr, AnyStr]:
551 """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