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

Function test_reset_in_length

IPython/core/tests/test_magic.py:368–372  ·  view source on GitHub ↗

Test that '%reset in' preserves In[] length

()

Source from the content-addressed store, hash-verified

366 _ip.run_cell("_dh = [d for d in tmp]") #restore
367
368def test_reset_in_length():
369 "Test that '%reset in' preserves In[] length"
370 _ip.run_cell("print 'foo'")
371 _ip.run_cell("reset -f in")
372 nt.assert_equal(len(_ip.user_ns['In']), _ip.displayhook.prompt_count+1)
373
374class TestResetErrors(TestCase):
375

Callers

nothing calls this directly

Calls 1

run_cellMethod · 0.45

Tested by

no test coverage detected