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

Method __init__

src/_pytest/capture.py:637–640  ·  view source on GitHub ↗
(self, method: "_CaptureMethod")

Source from the content-addressed store, hash-verified

635 """
636
637 def __init__(self, method: "_CaptureMethod") -> None:
638 self._method = method
639 self._global_capturing: Optional[MultiCapture[str]] = None
640 self._capture_fixture: Optional[CaptureFixture[Any]] = None
641
642 def __repr__(self) -> str:
643 return "<CaptureManager _method={!r} _global_capturing={!r} _capture_fixture={!r}>".format(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected