MCPcopy Index your code
hub / github.com/ipython/ipython / test_capture_output_no_stdout

Function test_capture_output_no_stdout

tests/test_capture.py:136–145  ·  view source on GitHub ↗

test capture_output(stdout=False)

()

Source from the content-addressed store, hash-verified

134
135
136def test_capture_output_no_stdout():
137 """test capture_output(stdout=False)"""
138 rich = capture.RichOutput(data=full_data)
139 with capture.capture_output(stdout=False) as cap:
140 print(hello_stdout, end="")
141 print(hello_stderr, end="", file=sys.stderr)
142 rich.display()
143 assert "" == cap.stdout
144 assert hello_stderr == cap.stderr
145 assert len(cap.outputs) == 1
146
147
148def test_capture_output_no_stderr():

Callers

nothing calls this directly

Calls 1

displayMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…