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

Method is_capturing

src/_pytest/capture.py:647–652  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

645 )
646
647 def is_capturing(self) -> Union[str, bool]:
648 if self.is_globally_capturing():
649 return "global"
650 if self._capture_fixture:
651 return "fixture %s" % self._capture_fixture.request.fixturename
652 return False
653
654 # Global capturing control
655

Callers 1

_is_capturingMethod · 0.80

Calls 1

is_globally_capturingMethod · 0.95

Tested by

no test coverage detected