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

Method test_bad_array_interface

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

Source from the content-addressed store, hash-verified

2452 assert_equal(pickle.loads(dumped), arr)
2453
2454 def test_bad_array_interface(self):
2455 class T:
2456 __array_interface__ = {}
2457
2458 with assert_raises(ValueError):
2459 np.array([T()])
2460
2461 def test_2d__array__shape(self):
2462 class T:

Callers

nothing calls this directly

Calls 2

assert_raisesFunction · 0.90
TClass · 0.70

Tested by

no test coverage detected