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

Function test_cull

dask/array/tests/test_slicing.py:756–761  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

754
755@pytest.mark.xfail
756def test_cull():
757 x = da.ones(1000, chunks=(10,))
758
759 for slc in [1, slice(0, 30), slice(0, None, 100)]:
760 y = x[slc]
761 assert len(y.dask) < len(x.dask)
762
763
764@pytest.mark.parametrize("shape", [(2,), (2, 3), (2, 3, 5)])

Callers

nothing calls this directly

Calls 1

onesMethod · 0.45

Tested by

no test coverage detected