Test valid timeit arguments, should not cause SyntaxError (GH #1269)
()
| 1229 | |
| 1230 | # this is slow, put at the end for local testing. |
| 1231 | def test_timeit_arguments(): |
| 1232 | "Test valid timeit arguments, should not cause SyntaxError (GH #1269)" |
| 1233 | if sys.version_info < (3,7): |
| 1234 | _ip.magic("timeit -n1 -r1 ('#')") |
| 1235 | else: |
| 1236 | # 3.7 optimize no-op statement like above out, and complain there is |
| 1237 | # nothing in the for loop. |
| 1238 | _ip.magic("timeit -n1 -r1 a=('#')") |