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

Function test_capture_output

tests/test_capture.py:125–133  ·  view source on GitHub ↗

capture_output works

()

Source from the content-addressed store, hash-verified

123
124
125def test_capture_output():
126 """capture_output works"""
127 rich = capture.RichOutput(data=full_data)
128 with capture.capture_output() as cap:
129 print(hello_stdout, end="")
130 print(hello_stderr, end="", file=sys.stderr)
131 rich.display()
132 assert hello_stdout == cap.stdout
133 assert hello_stderr == cap.stderr
134
135
136def test_capture_output_no_stdout():

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…