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

Method disabled

src/_pytest/capture.py:994–1000  ·  view source on GitHub ↗

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

(self)

Source from the content-addressed store, hash-verified

992
993 @contextlib.contextmanager
994 def disabled(self) -> Generator[None]:
995 """Temporarily disable capturing while inside the ``with`` block."""
996 capmanager: CaptureManager = self.request.config.pluginmanager.getplugin(
997 "capturemanager"
998 )
999 with capmanager.global_and_fixture_disabled():
1000 yield
1001
1002
1003# The fixtures.

Callers

nothing calls this directly

Calls 2

getpluginMethod · 0.80

Tested by

no test coverage detected