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

Function test_script_bg_err

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

Source from the content-addressed store, hash-verified

985
986@dec.skip_win32
987def test_script_bg_err():
988 ip = get_ipython()
989 ip.run_cell_magic("script", "--bg --err error sh", "echo 'hello' >&2")
990 nt.assert_equal(ip.user_ns['error'].read(), b'hello\n')
991 ip.user_ns['error'].close()
992
993@dec.skip_win32
994def test_script_bg_out_err():

Callers

nothing calls this directly

Calls 4

get_ipythonFunction · 0.90
run_cell_magicMethod · 0.80
readMethod · 0.80
closeMethod · 0.45

Tested by

no test coverage detected