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

Method stop_capturing

src/_pytest/capture.py:689–699  ·  view source on GitHub ↗

Stop capturing and reset capturing streams.

(self)

Source from the content-addressed store, hash-verified

687 self._in_suspended = False
688
689 def stop_capturing(self) -> None:
690 """Stop capturing and reset capturing streams."""
691 if self._state == "stopped":
692 raise ValueError("was already stopped")
693 self._state = "stopped"
694 if self.out:
695 self.out.done()
696 if self.err:
697 self.err.done()
698 if self.in_:
699 self.in_.done()
700
701 def is_started(self) -> bool:
702 """Whether actively capturing -- not suspended or stopped."""

Callers 10

runpytest_inprocessMethod · 0.80
stop_global_capturingMethod · 0.80
closeMethod · 0.80
test_init_capturingMethod · 0.80
getcaptureMethod · 0.80
test_manyMethod · 0.80

Calls 1

doneMethod · 0.45

Tested by 8

runpytest_inprocessMethod · 0.64
test_init_capturingMethod · 0.64
getcaptureMethod · 0.64
test_manyMethod · 0.64