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

Function test_make_empty_shaped_array

tests/test_numpy_array.py:221–227  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

219
220
221def test_make_empty_shaped_array():
222 m.make_empty_shaped_array()
223
224 # empty shape means numpy scalar, PEP 3118
225 assert m.scalar_int().ndim == 0
226 assert m.scalar_int().shape == ()
227 assert m.scalar_int() == 42
228
229
230def test_wrap():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected