()
| 456 | |
| 457 | |
| 458 | def test_out_numpy(): |
| 459 | x = da.arange(10, chunks=(5,)) |
| 460 | empty = np.empty(10, dtype=x.dtype) |
| 461 | with pytest.raises((TypeError, NotImplementedError)) as info: |
| 462 | np.add(x, 1, out=empty) |
| 463 | |
| 464 | assert "ndarray" in str(info.value) |
| 465 | assert "Array" in str(info.value) |
| 466 | |
| 467 | |
| 468 | def test_out_shape_mismatch(): |