MCPcopy Index your code
hub / github.com/numpy/numpy / test_interface_empty_shape

Function test_interface_empty_shape

numpy/_core/tests/test_multiarray.py:9674–9678  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9672
9673
9674def test_interface_empty_shape():
9675 class ArrayLike:
9676 array = np.array(1)
9677 __array_interface__ = array.__array_interface__
9678 assert_equal(np.array(ArrayLike()), 1)
9679
9680
9681def test_interface_no_shape_error():

Callers

nothing calls this directly

Calls 2

assert_equalFunction · 0.90
ArrayLikeClass · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…