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

Function StdCapture

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

Source from the content-addressed store, hash-verified

36
37
38def StdCapture(
39 out: bool = True, err: bool = True, in_: bool = True
40) -> MultiCapture[str]:
41 return capture.MultiCapture(
42 in_=capture.SysCapture(0) if in_ else None,
43 out=capture.SysCapture(1) if out else None,
44 err=capture.SysCapture(2) if err else None,
45 )
46
47
48def TeeStdCapture(

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected