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

Function test_reduction_errors

dask/array/tests/test_reductions.py:228–233  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

226
227
228def test_reduction_errors():
229 x = da.ones((5, 5), chunks=(3, 3))
230 with pytest.raises(ValueError):
231 x.sum(axis=2)
232 with pytest.raises(ValueError):
233 x.sum(axis=-3)
234
235
236@pytest.mark.slow

Callers

nothing calls this directly

Calls 2

onesMethod · 0.45
sumMethod · 0.45

Tested by

no test coverage detected