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

Method disabled

src/_pytest/capture.py:867–871  ·  view source on GitHub ↗

Temporarily disable capturing while inside the ``with`` block.

(self)

Source from the content-addressed store, hash-verified

865
866 @contextlib.contextmanager
867 def disabled(self) -> Generator[None, None, None]:
868 """Temporarily disable capturing while inside the ``with`` block."""
869 capmanager = self.request.config.pluginmanager.getplugin("capturemanager")
870 with capmanager.global_and_fixture_disabled():
871 yield
872
873
874# The fixtures.

Callers

nothing calls this directly

Calls 2

getpluginMethod · 0.80

Tested by

no test coverage detected