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

Function StdCaptureFD

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

Source from the content-addressed store, hash-verified

26
27
28def StdCaptureFD(
29 out: bool = True, err: bool = True, in_: bool = True
30) -> MultiCapture[str]:
31 return capture.MultiCapture(
32 in_=capture.FDCapture(0) if in_ else None,
33 out=capture.FDCapture(1) if out else None,
34 err=capture.FDCapture(2) if err else None,
35 )
36
37
38def StdCapture(

Callers 4

test_init_capturingMethod · 0.85
test_manyMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected