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

Function test_numpy

dask/tests/test_sizeof.py:41–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39
40
41def test_numpy():
42 np = pytest.importorskip("numpy")
43 assert 8000 <= sizeof(np.empty(1000, dtype="f8")) <= 9000
44 dt = np.dtype("f8")
45 assert sizeof(dt) == sys.getsizeof(dt)
46
47
48def test_numpy_0_strided():

Callers

nothing calls this directly

Calls 2

emptyMethod · 0.45
dtypeMethod · 0.45

Tested by

no test coverage detected