##// END OF EJS Templates
Fix timeti test nightly/3.7
Matthias Bussonnier -
Show More
@@ -109,7 +109,7 class TimeitResult(object):
109 unic = self.__str__()
109 unic = self.__str__()
110 p.text(u'<TimeitResult : '+unic+u'>')
110 p.text(u'<TimeitResult : '+unic+u'>')
111
111
112
112 _pass = ast.Pass()
113
113
114 class TimeitTemplateFiller(ast.NodeTransformer):
114 class TimeitTemplateFiller(ast.NodeTransformer):
115 """Fill in the AST template for timing execution.
115 """Fill in the AST template for timing execution.
@@ -564,7 +564,13 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