()
| 504 | |
| 505 | |
| 506 | def test_from_dask_array_unknown_width_error(): |
| 507 | dsk = {("x", 0, 0): np.random.random((2, 3)), ("x", 1, 0): np.random.random((5, 3))} |
| 508 | dx = da.Array(dsk, "x", ((np.nan, np.nan), (np.nan,)), np.float64) |
| 509 | with pytest.raises(ValueError, match="Shape along axis 1 must be known"): |
| 510 | dd.from_dask_array(dx) |
| 511 | |
| 512 | |
| 513 | @pytest.mark.gpu |