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

Method deactivate_fixture

src/_pytest/capture.py:715–718  ·  view source on GitHub ↗

Deactivate the ``capsys`` or ``capfd`` fixture of this item, if any.

(self)

Source from the content-addressed store, hash-verified

713 self._capture_fixture._start()
714
715 def deactivate_fixture(self) -> None:
716 """Deactivate the ``capsys`` or ``capfd`` fixture of this item, if any."""
717 if self._capture_fixture:
718 self._capture_fixture.close()
719
720 def suspend_fixture(self) -> None:
721 if self._capture_fixture:

Callers 1

item_captureMethod · 0.95

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected