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

Class T

numpy/core/tests/test_regression.py:2455–2456  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2453
2454 def test_bad_array_interface(self):
2455 class T:
2456 __array_interface__ = {}
2457
2458 with assert_raises(ValueError):
2459 np.array([T()])

Callers 2

test_2d__array__shapeMethod · 0.70

Calls

no outgoing calls

Tested by 2

test_2d__array__shapeMethod · 0.56