()
| 3421 | |
| 3422 | |
| 3423 | def test_slice_with_floats(): |
| 3424 | d = da.ones((5,), chunks=(3,)) |
| 3425 | with pytest.raises(IndexError): |
| 3426 | d[1.5] |
| 3427 | with pytest.raises(IndexError): |
| 3428 | d[0:1.5] |
| 3429 | with pytest.raises(IndexError): |
| 3430 | d[[1, 1.5]] |
| 3431 | |
| 3432 | |
| 3433 | @pytest.mark.parametrize("dtype", [np.int32, np.int64, np.uint32, np.uint64]) |