()
| 4762 | |
| 4763 | |
| 4764 | def 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 | |
| 4775 | def test_blockwise_with_numpy_arrays(): |