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

Function test_time

IPython/core/tests/test_magic.py:417–428  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

415
416
417def test_time():
418 ip = get_ipython()
419
420 with tt.AssertPrints("Wall time: "):
421 ip.run_cell("%time None")
422
423 ip.run_cell("def f(kmjy):\n"
424 " %time print (2*kmjy)")
425
426 with tt.AssertPrints("Wall time: "):
427 with tt.AssertPrints("hihi", suppress=False):
428 ip.run_cell("f('hi')")
429
430def test_time_last_not_expression():
431 ip.run_cell("%%time\n"

Callers

nothing calls this directly

Calls 2

get_ipythonFunction · 0.90
run_cellMethod · 0.45

Tested by

no test coverage detected