##// END OF EJS Templates
Backport PR #11131: Fix timeit test nightly/3.7
Matthias Bussonnier -
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
@@ -568,7 +568,13 b' def test_timeit_shlex():'
568
568
569 def test_timeit_arguments():
569 def test_timeit_arguments():
570 "Test valid timeit arguments, should not cause SyntaxError (GH #1269)"
570 "Test valid timeit arguments, should not cause SyntaxError (GH #1269)"
571 _ip.magic("timeit ('#')")
571 if sys.version_info < (3,7):
572 _ip.magic("timeit ('#')")
573 else:
574 # 3.7 optimize no-op statement like above out, and complain there is
575 # nothing in the for loop.
576 _ip.magic("timeit a=('#')")
577
572
578
573
579
574 def test_timeit_special_syntax():
580 def test_timeit_special_syntax():
General Comments 0
You need to be logged in to leave comments. Login now