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