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

Function test_capture_output_no_stderr

tests/test_capture.py:148–158  ·  view source on GitHub ↗

test capture_output(stderr=False)

()

Source from the content-addressed store, hash-verified

146
147
148def test_capture_output_no_stderr():
149 """test capture_output(stderr=False)"""
150 rich = capture.RichOutput(data=full_data)
151 # add nested capture_output so stderr doesn't make it to nose output
152 with capture.capture_output(), capture.capture_output(stderr=False) as cap:
153 print(hello_stdout, end="")
154 print(hello_stderr, end="", file=sys.stderr)
155 rich.display()
156 assert hello_stdout == cap.stdout
157 assert "" == cap.stderr
158 assert len(cap.outputs) == 1
159
160
161def test_capture_output_no_display():

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…