MCPcopy Create free account
hub / github.com/pybind/pybind11 / test_array_view_invalid

Function test_array_view_invalid

tests/test_numpy_array.py:531–534  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

529
530
531def test_array_view_invalid():
532 a = np.ones(100 * 4).astype("uint8")
533 with pytest.raises(TypeError):
534 m.array_view(a, "deadly_dtype")
535
536
537def test_reshape_initializer_list():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected