MCPcopy Create free account
hub / github.com/dask/dask / test_meta

Function test_meta

dask/array/tests/test_array_core.py:4844–4848  ·  view source on GitHub ↗
(dtype)

Source from the content-addressed store, hash-verified

4842
4843@pytest.mark.parametrize("dtype", [None, [("a", "f4"), ("b", object)]])
4844def test_meta(dtype):
4845 a = da.zeros((1,), chunks=(1,))
4846 assert a._meta.dtype == a.dtype
4847 assert isinstance(a._meta, np.ndarray)
4848 assert a.nbytes < 1000
4849
4850
4851@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 1

zerosMethod · 0.45

Tested by

no test coverage detected