From e0e1dc65651d313e98ba894dcff98c079c004879 2017-02-21 16:10:04 From: Thomas Kluyver Date: 2017-02-21 16:10:04 Subject: [PATCH] Merge pull request #10310 from musically-ut/feat-test-10303 TST: Add test for bug #10303. --- diff --git a/IPython/core/tests/test_run.py b/IPython/core/tests/test_run.py index c654ff8..a1ea35f 100644 --- a/IPython/core/tests/test_run.py +++ b/IPython/core/tests/test_run.py @@ -471,6 +471,10 @@ def test_run__name__(): _ip.magic('run -n {}'.format(path)) nt.assert_equal(_ip.user_ns.pop('q'), 'foo') + _ip.magic('run -i -n {}'.format(path)) + nt.assert_equal(_ip.user_ns.pop('q'), 'foo') + + def test_run_tb(): """Test traceback offset in %run""" with TemporaryDirectory() as td: