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

Function test_stack_errs

dask/array/tests/test_array_core.py:4764–4772  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4762
4763
4764def test_stack_errs():
4765 with pytest.raises(ValueError) as e:
4766 da.stack([da.zeros((2,), chunks=2)] * 10 + [da.zeros((3,), chunks=3)] * 10)
4767
4768 assert (
4769 str(e.value)
4770 == "Stacked arrays must have the same shape. The first array had shape (2,), while array 11 has shape (3,)."
4771 )
4772 assert len(str(e.value)) < 105
4773
4774
4775def test_blockwise_with_numpy_arrays():

Callers

nothing calls this directly

Calls 1

zerosMethod · 0.45

Tested by

no test coverage detected