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

Method test_init_capturing

testing/test_capture.py:94–103  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

92 capouter.stop_capturing()
93
94 def test_init_capturing(self):
95 capouter = StdCaptureFD()
96 try:
97 capman = CaptureManager("fd")
98 capman.start_global_capturing()
99 with pytest.raises(AssertionError):
100 capman.start_global_capturing()
101 capman.stop_global_capturing()
102 finally:
103 capouter.stop_capturing()
104
105
106@pytest.mark.parametrize("method", ["fd", "sys"])

Callers

nothing calls this directly

Calls 5

stop_global_capturingMethod · 0.95
CaptureManagerClass · 0.90
StdCaptureFDFunction · 0.85
stop_capturingMethod · 0.80

Tested by

no test coverage detected