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

Method test_init_capturing

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

Source from the content-addressed store, hash-verified

87 capouter.stop_capturing()
88
89 def test_init_capturing(self):
90 capouter = StdCaptureFD()
91 try:
92 capman = CaptureManager("fd")
93 capman.start_global_capturing()
94 pytest.raises(AssertionError, capman.start_global_capturing)
95 capman.stop_global_capturing()
96 finally:
97 capouter.stop_capturing()
98
99
100@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