##// END OF EJS Templates
TST: Add tests for bug #10303.
Utkarsh Upadhyay -
Show More
@@ -471,6 +471,10 b' def test_run__name__():'
471 _ip.magic('run -n {}'.format(path))
471 _ip.magic('run -n {}'.format(path))
472 nt.assert_equal(_ip.user_ns.pop('q'), 'foo')
472 nt.assert_equal(_ip.user_ns.pop('q'), 'foo')
473
473
474 _ip.magic('run -i -n {}'.format(path))
475 nt.assert_equal(_ip.user_ns.pop('q'), 'foo')
476
477
474 def test_run_tb():
478 def test_run_tb():
475 """Test traceback offset in %run"""
479 """Test traceback offset in %run"""
476 with TemporaryDirectory() as td:
480 with TemporaryDirectory() as td:
General Comments 0
You need to be logged in to leave comments. Login now