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

Function test_is_arraylike

dask/tests/test_utils.py:715–726  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

713
714
715def test_is_arraylike():
716 np = pytest.importorskip("numpy")
717
718 assert is_arraylike(0) is False
719 assert is_arraylike(()) is False
720 assert is_arraylike(0) is False
721 assert is_arraylike([]) is False
722 assert is_arraylike([0]) is False
723
724 assert is_arraylike(np.empty(())) is True
725 assert is_arraylike(np.empty((0,))) is True
726 assert is_arraylike(np.empty((0, 0))) is True
727
728
729def test_iter_chunks():

Callers

nothing calls this directly

Calls 2

is_arraylikeFunction · 0.90
emptyMethod · 0.45

Tested by

no test coverage detected