MCPcopy Index your code
hub / github.com/pytest-dev/pytest / StdCapture

Function StdCapture

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

Source from the content-addressed store, hash-verified

41
42
43def StdCapture(
44 out: bool = True, err: bool = True, in_: bool = True
45) -> MultiCapture[str]:
46 return capture.MultiCapture(
47 in_=capture.SysCapture(0) if in_ else None,
48 out=capture.SysCapture(1) if out else None,
49 err=capture.SysCapture(2) if err else None,
50 )
51
52
53def TeeStdCapture(

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…