MCPcopy Create free account
hub / github.com/ipython/ipython / test_capture_output_no_display

Function test_capture_output_no_display

IPython/utils/tests/test_capture.py:150–159  ·  view source on GitHub ↗

test capture_output(display=False)

()

Source from the content-addressed store, hash-verified

148 yield nt.assert_equal, len(cap.outputs), 1
149
150def test_capture_output_no_display():
151 """test capture_output(display=False)"""
152 rich = capture.RichOutput(data=full_data)
153 with capture.capture_output(display=False) as cap:
154 print(hello_stdout, end="")
155 print(hello_stderr, end="", file=sys.stderr)
156 rich.display()
157 yield nt.assert_equal, hello_stdout, cap.stdout
158 yield nt.assert_equal, hello_stderr, cap.stderr
159 yield nt.assert_equal, cap.outputs, []

Callers

nothing calls this directly

Calls 1

displayMethod · 0.95

Tested by

no test coverage detected