MCPcopy Index your code
hub / github.com/ipython/ipython / test_timeit_shlex

Function test_timeit_shlex

tests/test_magic.py:877–885  ·  view source on GitHub ↗

test shlex issues with timeit (#1109)

()

Source from the content-addressed store, hash-verified

875
876
877def test_timeit_shlex():
878 """test shlex issues with timeit (#1109)"""
879 _ip.ex("def f(*a,**kw): pass")
880 _ip.run_line_magic("timeit", '-n1 "this is a bug".count(" ")')
881 _ip.run_line_magic("timeit", '-r1 -n1 f(" ", 1)')
882 _ip.run_line_magic("timeit", '-r1 -n1 f(" ", 1, " ", 2, " ")')
883 _ip.run_line_magic("timeit", '-r1 -n1 ("a " + "b")')
884 _ip.run_line_magic("timeit", '-r1 -n1 f("a " + "b")')
885 _ip.run_line_magic("timeit", '-r1 -n1 f("a " + "b ")')
886
887
888def test_timeit_special_syntax():

Callers

nothing calls this directly

Calls 2

exMethod · 0.80
run_line_magicMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…