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

Method getcapture

testing/test_capture.py:1067–1073  ·  view source on GitHub ↗
(self, **kw)

Source from the content-addressed store, hash-verified

1065
1066 @contextlib.contextmanager
1067 def getcapture(self, **kw):
1068 cap = self.__class__.captureclass(**kw)
1069 cap.start_capturing()
1070 try:
1071 yield cap
1072 finally:
1073 cap.stop_capturing()
1074
1075 def test_capturing_done_simple(self) -> None:
1076 with self.getcapture() as cap:

Calls 2

start_capturingMethod · 0.80
stop_capturingMethod · 0.80

Tested by

no test coverage detected