Test '%reset array' functionality
()
| 329 | |
| 330 | @dec.skipif_not_numpy |
| 331 | def test_numpy_reset_array_undec(): |
| 332 | "Test '%reset array' functionality" |
| 333 | _ip.ex('import numpy as np') |
| 334 | _ip.ex('a = np.empty(2)') |
| 335 | nt.assert_in('a', _ip.user_ns) |
| 336 | _ip.magic('reset -f array') |
| 337 | nt.assert_not_in('a', _ip.user_ns) |
| 338 | |
| 339 | def test_reset_out(): |
| 340 | "Test '%reset out' magic" |