MCPcopy Create free account
hub / github.com/ipython/ipython / test_timeit_arguments

Function test_timeit_arguments

IPython/core/tests/test_magic.py:1231–1238  ·  view source on GitHub ↗

Test valid timeit arguments, should not cause SyntaxError (GH #1269)

()

Source from the content-addressed store, hash-verified

1229
1230# this is slow, put at the end for local testing.
1231def 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=('#')")

Callers

nothing calls this directly

Calls 1

magicMethod · 0.45

Tested by

no test coverage detected