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

Method disabled

src/_pytest/capture.py:994–1000  ·  src/_pytest/capture.py::CaptureFixture.disabled

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 class="st">""class="st">"Temporarily disable capturing while inside the ``with`` block."class="st">""
996 capmanager: CaptureManager = self.request.config.pluginmanager.getplugin(
997 class="st">"capturemanager"
998 )
999 with capmanager.global_and_fixture_disabled():
1000 yield
1001
1002
1003class="cm"># The fixtures.

Callers

nothing calls this directly

Calls 2

getpluginMethod · 0.80

Tested by

no test coverage detected