Permalink
Browse files

Don't assume test case for %time will finish in 0 time.

Closes gh-2899
  • Loading branch information...
1 parent a815e47 commit 2e9dee88b4a65c297a7179d126b4d6fae1feb75e @takluyver committed Feb 8, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 IPython/core/tests/test_magic.py
@@ -283,13 +283,13 @@ def test_tb_syntaxerror():
def test_time():
ip = get_ipython()
- with tt.AssertPrints("CPU times: user 0 ns, sys: 0 ns, total: 0 ns"):
+ with tt.AssertPrints("CPU times: user "):
ip.run_cell("%time None")
ip.run_cell("def f(kmjy):\n"
" %time print (2*kmjy)")
- with tt.AssertPrints("CPU times: user 0 ns, sys: 0 ns, total: 0 ns"):
+ with tt.AssertPrints("CPU times: user "):
with tt.AssertPrints("hihi", suppress=False):
ip.run_cell("f('hi')")

0 comments on commit 2e9dee8

Please sign in to comment.