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

Method test_void_item_memview

numpy/core/tests/test_regression.py:2359–2364  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2357 assert_equal(item, item2)
2358
2359 def test_void_item_memview(self):
2360 va = np.zeros(10, 'V4')
2361 x = va[:1].item()
2362 va[0] = b'\xff\xff\xff\xff'
2363 del va
2364 assert_equal(x, b'\x00\x00\x00\x00')
2365
2366 def test_void_getitem(self):
2367 # Test fix for gh-11668.

Callers

nothing calls this directly

Calls 2

assert_equalFunction · 0.90
itemMethod · 0.80

Tested by

no test coverage detected