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

Function TeeStdCapture

testing/test_capture.py:48–55  ·  view source on GitHub ↗
(
    out: bool = True, err: bool = True, in_: bool = True
)

Source from the content-addressed store, hash-verified

46
47
48def TeeStdCapture(
49 out: bool = True, err: bool = True, in_: bool = True
50) -> MultiCapture[str]:
51 return capture.MultiCapture(
52 in_=capture.SysCapture(0, tee=True) if in_ else None,
53 out=capture.SysCapture(1, tee=True) if out else None,
54 err=capture.SysCapture(2, tee=True) if err else None,
55 )
56
57
58class TestCaptureManager:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected