()
| 536 | nt.assert_equal(_ip.InteractiveTB.mode, xmode) |
| 537 | |
| 538 | def test_reset_hard(): |
| 539 | monitor = [] |
| 540 | class A(object): |
| 541 | def __del__(self): |
| 542 | monitor.append(1) |
| 543 | def __repr__(self): |
| 544 | return "<A instance>" |
| 545 | |
| 546 | _ip.user_ns["a"] = A() |
| 547 | _ip.run_cell("a") |
| 548 | |
| 549 | nt.assert_equal(monitor, []) |
| 550 | _ip.magic("reset -f") |
| 551 | nt.assert_equal(monitor, [1]) |
| 552 | |
| 553 | class TestXdel(tt.TempFileMixin): |
| 554 | def test_xdel(self): |