Skip to content

Commit

Permalink
Fix test for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
takluyver committed Mar 15, 2013
1 parent 3c0b898 commit b0001fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions IPython/core/tests/test_interactiveshell.py
Expand Up @@ -493,13 +493,13 @@ def f(x):
ip.push({'f':f})

# Test with an expression
with tt.AssertPrints("CPU times"):
with tt.AssertPrints("Wall time: "):
ip.run_line_magic("time", "f(5+9)")
self.assertEqual(called, [-14])
called[:] = []

# Test with a statement (different code path)
with tt.AssertPrints("CPU times"):
with tt.AssertPrints("Wall time: "):
ip.run_line_magic("time", "a = f(-3 + -2)")
self.assertEqual(called, [5])

Expand Down

0 comments on commit b0001fc

Please sign in to comment.