##// END OF EJS Templates
add time test
Matthias Bussonnier -
Show More
@@ -400,6 +400,15 b' def test_time():'
400 with tt.AssertPrints("hihi", suppress=False):
400 with tt.AssertPrints("hihi", suppress=False):
401 ip.run_cell("f('hi')")
401 ip.run_cell("f('hi')")
402
402
403 def test_time_last_not_expression():
404 ip.run_cell("%%time\n"
405 "var_1 = 1\n"
406 "var_2 = 2\n")
407 assert ip.user_ns['var_1'] == 1
408 del ip.user_ns['var_1']
409 assert ip.user_ns['var_2'] == 2
410 del ip.user_ns['var_2']
411
403
412
404 @dec.skip_win32
413 @dec.skip_win32
405 def test_time2():
414 def test_time2():
General Comments 0
You need to be logged in to leave comments. Login now