()
| 992 | |
| 993 | @dec.skip_win32 |
| 994 | def test_script_bg_out_err(): |
| 995 | ip = get_ipython() |
| 996 | ip.run_cell_magic("script", "--bg --out output --err error sh", "echo 'hi'\necho 'hello' >&2") |
| 997 | nt.assert_equal(ip.user_ns['output'].read(), b'hi\n') |
| 998 | nt.assert_equal(ip.user_ns['error'].read(), b'hello\n') |
| 999 | ip.user_ns['output'].close() |
| 1000 | ip.user_ns['error'].close() |
| 1001 | |
| 1002 | def test_script_defaults(): |
| 1003 | ip = get_ipython() |
nothing calls this directly
no test coverage detected