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

Method start

src/_pytest/capture.py:269–272  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

267 )
268
269 def start(self) -> None:
270 self._assert_state("start", ("initialized",))
271 setattr(sys, self.name, self.tmpfile)
272 self._state = "started"
273
274 def snap(self):
275 self._assert_state("snap", ("started", "suspended"))

Callers

nothing calls this directly

Calls 1

_assert_stateMethod · 0.95

Tested by

no test coverage detected