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

Function test_numpy_reset_array_undec

IPython/core/tests/test_magic.py:331–337  ·  view source on GitHub ↗

Test '%reset array' functionality

()

Source from the content-addressed store, hash-verified

329
330@dec.skipif_not_numpy
331def 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
339def test_reset_out():
340 "Test '%reset out' magic"

Callers

nothing calls this directly

Calls 2

exMethod · 0.80
magicMethod · 0.45

Tested by

no test coverage detected