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

Method start

src/_pytest/capture.py:390–395  ·  view source on GitHub ↗

Start capturing on targetfd using memorized tmpfile.

(self)

Source from the content-addressed store, hash-verified

388 )
389
390 def start(self) -> None:
391 """Start capturing on targetfd using memorized tmpfile."""
392 self._assert_state("start", ("initialized",))
393 os.dup2(self.tmpfile.fileno(), self.targetfd)
394 self.syscapture.start()
395 self._state = "started"
396
397 def snap(self):
398 self._assert_state("snap", ("started", "suspended"))

Callers 9

start_capturingMethod · 0.45
test_simpleMethod · 0.45
test_stderrMethod · 0.45
test_stdinMethod · 0.45
test_writeorgMethod · 0.45

Calls 2

_assert_stateMethod · 0.95
filenoMethod · 0.45

Tested by 8

test_simpleMethod · 0.36
test_stderrMethod · 0.36
test_stdinMethod · 0.36
test_writeorgMethod · 0.36