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

Function test_capture_output_no_display

tests/test_capture.py:161–172  ·  view source on GitHub ↗

test capture_output(display=False)

()

Source from the content-addressed store, hash-verified

159
160
161def test_capture_output_no_display():
162 """test capture_output(display=False)"""
163 data = full_data.copy()
164 del data["image/png"]
165 rich = capture.RichOutput(data=data)
166 with capture.capture_output(display=False) as cap:
167 print(hello_stdout, end="")
168 print(hello_stderr, end="", file=sys.stderr)
169 rich.display()
170 assert hello_stdout == cap.stdout
171 assert hello_stderr == cap.stderr
172 assert cap.outputs == []
173
174
175def test_captured_io_none_streams():

Callers

nothing calls this directly

Calls 2

displayMethod · 0.95
copyMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…