MCPcopy
hub / github.com/pytest-dev/pytest / deactivate_fixture

Method deactivate_fixture

src/_pytest/capture.py:825–828  ·  view source on GitHub ↗

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

(self)

Source from the content-addressed store, hash-verified

823 self._capture_fixture._start()
824
825 def deactivate_fixture(self) -> None:
826 """Deactivate the ``capsys`` or ``capfd`` fixture of this item, if any."""
827 if self._capture_fixture:
828 self._capture_fixture.close()
829
830 def suspend_fixture(self) -> None:
831 if self._capture_fixture:

Callers 1

item_captureMethod · 0.95

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected