MCPcopy Index your code
hub / github.com/ipython/ipython / test_numpy_reset_array_undec

Function test_numpy_reset_array_undec

tests/test_magic.py:330–336  ·  view source on GitHub ↗

Test '%reset array' functionality

()

Source from the content-addressed store, hash-verified

328
329@dec.skipif_not_numpy
330def test_numpy_reset_array_undec():
331 "Test '%reset array' functionality"
332 _ip.ex("import numpy as np")
333 _ip.ex("a = np.empty(2)")
334 assert "a" in _ip.user_ns
335 _ip.run_line_magic("reset", "-f array")
336 assert "a" not in _ip.user_ns
337
338
339@pytest.fixture()

Callers

nothing calls this directly

Calls 2

exMethod · 0.80
run_line_magicMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…