##// END OF EJS Templates
Speed up timeit arguments test
Ed OBrien -
Show More
@@ -1165,8 +1165,8 b' def test_time_no_var_expand():'
1165 def test_timeit_arguments():
1165 def test_timeit_arguments():
1166 "Test valid timeit arguments, should not cause SyntaxError (GH #1269)"
1166 "Test valid timeit arguments, should not cause SyntaxError (GH #1269)"
1167 if sys.version_info < (3,7):
1167 if sys.version_info < (3,7):
1168 _ip.magic("timeit ('#')")
1168 _ip.magic("timeit -n1 -r1 ('#')")
1169 else:
1169 else:
1170 # 3.7 optimize no-op statement like above out, and complain there is
1170 # 3.7 optimize no-op statement like above out, and complain there is
1171 # nothing in the for loop.
1171 # nothing in the for loop.
1172 _ip.magic("timeit a=('#')")
1172 _ip.magic("timeit -n1 -r1 a=('#')")
General Comments 0
You need to be logged in to leave comments. Login now