Permalink
Browse files

Make test of %run more rigorous.

  • Loading branch information...
1 parent c28834f commit 325cef63452ada147bcbbdc43810c5a0d2704225 @takluyver committed Apr 14, 2011
Showing with 4 additions and 1 deletion.
  1. +4 −1 IPython/core/tests/test_run.py
@@ -196,12 +196,15 @@ def test_tclass(self):
mydir = os.path.dirname(__file__)
tc = os.path.join(mydir, 'tclass')
src = ("%%run '%s' C-first\n"
- "%%run '%s' C-second\n") % (tc, tc)
+ "%%run '%s' C-second\n"
+ "%%run '%s' C-third\n") % (tc, tc, tc)
self.mktmp(src, '.ipy')
out = """\
ARGV 1-: [u'C-first']
ARGV 1-: [u'C-second']
tclass.py: deleting object: C-first
+ARGV 1-: [u'C-third']
tclass.py: deleting object: C-second
+tclass.py: deleting object: C-third
"""
tt.ipexec_validate(self.fname, out)

0 comments on commit 325cef6

Please sign in to comment.