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

Class ArrayLike

numpy/core/tests/test_multiarray.py:8580–8582  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 3

test_array_interfacesMethod · 0.70
test___array__Method · 0.70
test_interface_no_shapeFunction · 0.70

Calls

no outgoing calls

Tested by 3

test_array_interfacesMethod · 0.56
test___array__Method · 0.56
test_interface_no_shapeFunction · 0.56