Skip to content
Browse files

Add test for gh-693 (%run -i after %reset).

  • Loading branch information...
1 parent a2e7cd4 commit b26bf6a57ae548922d475cfa3f5ae28d90b268d8 @takluyver committed Nov 27, 2011
Showing with 12 additions and 0 deletions.
  1. +12 −0 IPython/core/tests/test_run.py
View
12 IPython/core/tests/test_run.py
@@ -228,3 +228,15 @@ def test_tclass(self):
else:
err = None
tt.ipexec_validate(self.fname, out, err)
+
+ def test_run_i_after_reset(self):
+ """Check that %run -i still works after %reset (gh-693)"""
+ src = "yy = zz\n"
+ self.mktmp(src)
+ _ip.run_cell("zz = 23")
+ _ip.magic('run -i %s' % self.fname)
+ tt.assert_equals(_ip.user_ns['yy'], 23)
+ _ip.magic('reset -f')
+ _ip.run_cell("zz = 23")
+ _ip.magic('run -i %s' % self.fname)
+ tt.assert_equals(_ip.user_ns['yy'], 23)

0 comments on commit b26bf6a

Please sign in to comment.
Something went wrong with that request. Please try again.