@dec.skipif_not_numpy
def test_numpy_reset_array_undec():
 _ip.ex('import numpy as np')
 _ip.ex('a = np.empty(2)')
 nt.assert_in('a', _ip.user_ns)
 _ip.magic('reset -f array')
 nt.assert_not_in('a', _ip.user_ns)

@ dec . skipif_not_numpy def test_numpy_reset_array_undec ( ) : _ip . ex ( 'import numpy as np' ) _ip . ex ( 'a = np.empty(2)' ) nt . assert_in ( 'a' , _ip . user_ns ) _ip . magic ( 'reset -f array' ) nt . assert_not_in ( 'a' , _ip . user_ns )
test %reset array functionality .