##// END OF EJS Templates
Backport PR #11131: Fix timeit test nightly/3.7
Matthias Bussonnier -
Show More
@@ -110,7 +110,6 class TimeitResult(object):
110 110 p.text(u'<TimeitResult : '+unic+u'>')
111 111
112 112
113
114 113 class TimeitTemplateFiller(ast.NodeTransformer):
115 114 """Fill in the AST template for timing execution.
116 115
@@ -568,7 +568,13 def test_timeit_shlex():
568 568
569 569 def test_timeit_arguments():
570 570 "Test valid timeit arguments, should not cause SyntaxError (GH #1269)"
571 if sys.version_info < (3,7):
571 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 580 def test_timeit_special_syntax():
General Comments 0
You need to be logged in to leave comments. Login now