MCPcopy
hub / github.com/pytest-dev/pytest / StdCaptureFD

Function StdCaptureFD

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

Source from the content-addressed store, hash-verified

31
32
33def StdCaptureFD(
34 out: bool = True, err: bool = True, in_: bool = True
35) -> MultiCapture[str]:
36 return capture.MultiCapture(
37 in_=capture.FDCapture(0) if in_ else None,
38 out=capture.FDCapture(1) if out else None,
39 err=capture.FDCapture(2) if err else None,
40 )
41
42
43def StdCapture(

Callers 4

test_init_capturingMethod · 0.85
test_manyMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected