MCPcopy Create free account
hub / github.com/numpy/numpy / test_close_raises

Function test_close_raises

numpy/core/tests/test_nditer.py:3180–3185  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3178 assert_equal(z, range(0, 10, 2))
3179
3180def test_close_raises():
3181 it = np.nditer(np.arange(3))
3182 assert_equal (next(it), 0)
3183 it.close()
3184 assert_raises(StopIteration, next, it)
3185 assert_raises(ValueError, getattr, it, 'operands')
3186
3187def test_close_parameters():
3188 it = np.nditer(np.arange(3))

Callers

nothing calls this directly

Calls 4

assert_equalFunction · 0.90
assert_raisesFunction · 0.90
nextFunction · 0.50
closeMethod · 0.45

Tested by

no test coverage detected