@dec.skip_win32
def test_script_err():
    ip = get_ipython()
    ip.run_cell_magic('script', '--err error sh', "echo 'hello' >&2")
    nt.assert_equal(ip.user_ns['error'], 'hello\n')
@dec.skip_win32
def test_script_err():
    ip = get_ipython()
    ip.run_cell_magic('script', '--err error sh', "echo 'hello' >&2")
    nt.assert_equal(ip.user_ns['error'], 'hello\n')