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

Function test_script_out_err

IPython/core/tests/test_magic.py:972–976  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

970
971@dec.skip_win32
972def test_script_out_err():
973 ip = get_ipython()
974 ip.run_cell_magic("script", "--out output --err error sh", "echo 'hi'\necho 'hello' >&2")
975 nt.assert_equal(ip.user_ns['output'], 'hi\n')
976 nt.assert_equal(ip.user_ns['error'], 'hello\n')
977
978@dec.skip_win32
979def test_script_bg_out():

Callers

nothing calls this directly

Calls 2

get_ipythonFunction · 0.90
run_cell_magicMethod · 0.80

Tested by

no test coverage detected