Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

  • Loading branch information...
commit b26bf6a57ae548922d475cfa3f5ae28d90b268d8 1 parent a2e7cd4
Thomas Kluyver authored

Showing 1 changed file with 12 additions and 0 deletions. Show diff stats Hide diff stats

  1. +12 0 IPython/core/tests/test_run.py
12 IPython/core/tests/test_run.py
@@ -228,3 +228,15 @@ def test_tclass(self):
228 228 else:
229 229 err = None
230 230 tt.ipexec_validate(self.fname, out, err)
  231 +
  232 + def test_run_i_after_reset(self):
  233 + """Check that %run -i still works after %reset (gh-693)"""
  234 + src = "yy = zz\n"
  235 + self.mktmp(src)
  236 + _ip.run_cell("zz = 23")
  237 + _ip.magic('run -i %s' % self.fname)
  238 + tt.assert_equals(_ip.user_ns['yy'], 23)
  239 + _ip.magic('reset -f')
  240 + _ip.run_cell("zz = 23")
  241 + _ip.magic('run -i %s' % self.fname)
  242 + 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.