Show More
@@ -110,7 +110,6 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 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 | if sys.version_info < (3,7): | |||
571 | _ip.magic("timeit ('#')") |
|
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