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

Function test_script_bg_out

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

Source from the content-addressed store, hash-verified

977
978@dec.skip_win32
979def test_script_bg_out():
980 ip = get_ipython()
981 ip.run_cell_magic("script", "--bg --out output sh", "echo 'hi'")
982
983 nt.assert_equal(ip.user_ns['output'].read(), b'hi\n')
984 ip.user_ns['output'].close()
985
986@dec.skip_win32
987def test_script_bg_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