Show More
@@ -627,7 +627,7 b' python-profiler package from non-free.""")' | |||
|
627 | 627 | t_sys = t1[1] - t0[1] |
|
628 | 628 | print "\nIPython CPU timings (estimated):" |
|
629 | 629 | print "Total runs performed:", nruns |
|
630 |
print " Times : %10 |
|
|
630 | print " Times : %10s %10s" % ('Total', 'Per run') | |
|
631 | 631 | print " User : %10.2f s, %10.2f s." % (t_usr, t_usr / nruns) |
|
632 | 632 | print " System : %10.2f s, %10.2f s." % (t_sys, t_sys / nruns) |
|
633 | 633 | twall1 = time.time() |
@@ -330,3 +330,10 b' tclass.py: deleting object: C-third' | |||
|
330 | 330 | |
|
331 | 331 | # Check that __file__ was not leaked back into user_ns. |
|
332 | 332 | nt.assert_equal(file1, file2) |
|
333 | ||
|
334 | def test_run_formatting(self): | |
|
335 | """ Test that %run -t -N<N> does not raise a TypeError for N > 1.""" | |
|
336 | src = "pass" | |
|
337 | self.mktmp(src) | |
|
338 | _ip.magic('run -t -N 1 %s' % self.fname) | |
|
339 | _ip.magic('run -t -N 10 %s' % self.fname) |
General Comments 0
You need to be logged in to leave comments.
Login now