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

Method test_elide_updateifcopy

numpy/core/tests/test_multiarray.py:4184–4188  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

4182 assert_equal(r, 0)
4183
4184 def test_elide_updateifcopy(self):
4185 a = np.ones(2**20)[::2]
4186 b = a.flat.__array__() + 1
4187 del b
4188 assert_equal(a, 1)
4189
4190
4191class TestCAPI:

Callers

nothing calls this directly

Calls 2

assert_equalFunction · 0.90
__array__Method · 0.45

Tested by

no test coverage detected