Browse files

Minor tweak to test for Python 3

  • Loading branch information...
1 parent bc2b914 commit 453a73900ca007e30ebbec999d8a6285cbd3aaa0 @takluyver committed Jul 6, 2013
Showing with 3 additions and 2 deletions.
  1. +3 −2 IPython/core/tests/test_run.py
View
5 IPython/core/tests/test_run.py
@@ -257,8 +257,9 @@ class secondtmp(tt.TempFileMixin): pass
" try:\n"
" ip.magic('run %s')\n"
" except NameError as e:\n"
- " print i;break\n" % empty.fname)
- self.mktmp(py3compat.doctest_refactor_print(src))
+ " print(i)\n"
+ " break\n" % empty.fname)
+ self.mktmp(src)
_ip.magic('run %s' % self.fname)
_ip.run_cell('ip == get_ipython()')
nt.assert_equal(_ip.user_ns['i'], 4)

0 comments on commit 453a739

Please sign in to comment.