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

Function test_vindex_errors

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

Source from the content-addressed store, hash-verified

3499
3500
3501def test_vindex_errors():
3502 d = da.ones((5, 5, 5), chunks=(3, 3, 3))
3503 pytest.raises(IndexError, lambda: d.vindex[np.newaxis])
3504 pytest.raises(IndexError, lambda: d.vindex[[1, 2], [1, 2, 3]])
3505 pytest.raises(IndexError, lambda: d.vindex[[True] * 5])
3506 pytest.raises(IndexError, lambda: d.vindex[[0], [5]])
3507 pytest.raises(IndexError, lambda: d.vindex[[0], [-6]])
3508 with pytest.raises(IndexError, match="does not support indexing with dask objects"):
3509 d.vindex[[0], [0], da.array([0])]
3510
3511
3512def test_vindex_merge():

Callers

nothing calls this directly

Calls 1

onesMethod · 0.45

Tested by

no test coverage detected