MCPcopy Index your code
hub / github.com/numpy/numpy / test_close_raises

Function test_close_raises

numpy/_core/tests/test_nditer.py:3439–3444  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3437 assert_equal(z, range(0, 10, 2))
3438
3439def test_close_raises():
3440 it = np.nditer(np.arange(3))
3441 assert_equal(next(it), 0)
3442 it.close()
3443 assert_raises(StopIteration, next, it)
3444 assert_raises(ValueError, getattr, it, 'operands')
3445
3446def test_close_parameters():
3447 it = np.nditer(np.arange(3))

Callers

nothing calls this directly

Calls 3

assert_equalFunction · 0.90
assert_raisesFunction · 0.90
closeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…