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

Function test_is_arraylike

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

is_arraylikeFunction · 0.90
emptyMethod · 0.45

Tested by

no test coverage detected