##// END OF EJS Templates
Backport PR #2864: Fix %run -t -N<N> TypeError...
MinRK -
Show More
@@ -611,7 +611,7 b' python-profiler package from non-free.""")'
611 t_sys = t1[1] - t0[1]
611 t_sys = t1[1] - t0[1]
612 print "\nIPython CPU timings (estimated):"
612 print "\nIPython CPU timings (estimated):"
613 print "Total runs performed:", nruns
613 print "Total runs performed:", nruns
614 print " Times : %10.2f %10.2f" % ('Total', 'Per run')
614 print " Times : %10s %10s" % ('Total', 'Per run')
615 print " User : %10.2f s, %10.2f s." % (t_usr, t_usr / nruns)
615 print " User : %10.2f s, %10.2f s." % (t_usr, t_usr / nruns)
616 print " System : %10.2f s, %10.2f s." % (t_sys, t_sys / nruns)
616 print " System : %10.2f s, %10.2f s." % (t_sys, t_sys / nruns)
617 twall1 = time.time()
617 twall1 = time.time()
@@ -248,3 +248,10 b' tclass.py: deleting object: C-third'
248 na = os.path.join(mydir, 'nonascii.py')
248 na = os.path.join(mydir, 'nonascii.py')
249 _ip.magic('run "%s"' % na)
249 _ip.magic('run "%s"' % na)
250 tt.assert_equals(_ip.user_ns['u'], u'Ўт№Ф')
250 tt.assert_equals(_ip.user_ns['u'], u'Ўт№Ф')
251
252 def test_run_formatting(self):
253 """ Test that %run -t -N<N> does not raise a TypeError for N > 1."""
254 src = "pass"
255 self.mktmp(src)
256 _ip.magic('run -t -N 1 %s' % self.fname)
257 _ip.magic('run -t -N 10 %s' % self.fname)
General Comments 0
You need to be logged in to leave comments. Login now