Test that '%reset in' preserves In[] length
()
| 366 | _ip.run_cell("_dh = [d for d in tmp]") #restore |
| 367 | |
| 368 | def 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 | |
| 374 | class TestResetErrors(TestCase): |
| 375 |