##// END OF EJS Templates
Merge pull request #11131 from Carreau/fix-timeit-nightly...
Matthias Bussonnier -
r24349:f36c97df merge
parent child Browse files
Show More
@@ -110,7 +110,6 b' class TimeitResult(object):'
110 p.text(u'<TimeitResult : '+unic+u'>')
110 p.text(u'<TimeitResult : '+unic+u'>')
111
111
112
112
113
114 class TimeitTemplateFiller(ast.NodeTransformer):
113 class TimeitTemplateFiller(ast.NodeTransformer):
115 """Fill in the AST template for timing execution.
114 """Fill in the AST template for timing execution.
116
115
@@ -564,7 +564,13 b' def test_timeit_shlex():'
564
564
565 def test_timeit_arguments():
565 def test_timeit_arguments():
566 "Test valid timeit arguments, should not cause SyntaxError (GH #1269)"
566 "Test valid timeit arguments, should not cause SyntaxError (GH #1269)"
567 _ip.magic("timeit ('#')")
567 if sys.version_info < (3,7):
568 _ip.magic("timeit ('#')")
569 else:
570 # 3.7 optimize no-op statement like above out, and complain there is
571 # nothing in the for loop.
572 _ip.magic("timeit a=('#')")
573
568
574
569
575
570 def test_timeit_special_syntax():
576 def test_timeit_special_syntax():
General Comments 0
You need to be logged in to leave comments. Login now