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

Method suspend

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

Source from the content-addressed store, hash-verified

289 self._state = "done"
290
291 def suspend(self) -> None:
292 self._assert_state("suspend", ("started", "suspended"))
293 setattr(sys, self.name, self._old)
294 self._state = "suspended"
295
296 def resume(self) -> None:
297 self._assert_state("resume", ("started", "suspended"))

Callers

nothing calls this directly

Calls 1

_assert_stateMethod · 0.95

Tested by

no test coverage detected