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

Function test_object_reduction

dask/array/tests/test_reductions.py:869–872  ·  view source on GitHub ↗
(method)

Source from the content-addressed store, hash-verified

867
868@pytest.mark.parametrize("method", ["sum", "mean", "prod"])
869def test_object_reduction(method):
870 arr = da.ones(1).astype(object)
871 result = getattr(arr, method)().compute()
872 assert result == 1
873
874
875@pytest.mark.parametrize("func", ["nanmin", "nanmax"])

Callers

nothing calls this directly

Calls 3

astypeMethod · 0.45
onesMethod · 0.45
computeMethod · 0.45

Tested by

no test coverage detected