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

Function test_time_last_not_expression

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

Source from the content-addressed store, hash-verified

428 ip.run_cell("f('hi')")
429
430def test_time_last_not_expression():
431 ip.run_cell("%%time\n"
432 "var_1 = 1\n"
433 "var_2 = 2\n")
434 assert ip.user_ns['var_1'] == 1
435 del ip.user_ns['var_1']
436 assert ip.user_ns['var_2'] == 2
437 del ip.user_ns['var_2']
438
439
440@dec.skip_win32

Callers

nothing calls this directly

Calls 1

run_cellMethod · 0.45

Tested by

no test coverage detected