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

Function test_interface_no_shape

numpy/core/tests/test_multiarray.py:8579–8583  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8577 assert_equal(pre_cnt, post_cnt)
8578
8579def test_interface_no_shape():
8580 class ArrayLike:
8581 array = np.array(1)
8582 __array_interface__ = array.__array_interface__
8583 assert_equal(np.array(ArrayLike()), 1)
8584
8585
8586def test_array_interface_itemsize():

Callers

nothing calls this directly

Calls 2

assert_equalFunction · 0.90
ArrayLikeClass · 0.70

Tested by

no test coverage detected