Skip to content

Commit a9a261e

Browse files
Exercise setitems for some checks made for getitem
1 parent b6e4ea3 commit a9a261e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

dpctl/tests/test_usm_ndarray_indexing.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1535,8 +1535,12 @@ def test_advanced_integer_indexing_cast_indices():
15351535
inds1 = dpt.astype(inds0, "u4")
15361536
inds2 = dpt.astype(inds0, "u8")
15371537
x = dpt.ones((3, 4, 5, 6), dtype="i4")
1538+
# test getitem
15381539
with pytest.raises(ValueError):
15391540
x[inds0, inds1, inds2, ...]
1541+
# test setitem
1542+
with pytest.raises(ValueError):
1543+
x[inds0, inds1, inds2, ...] = 1
15401544

15411545

15421546
def test_take_along_axis():

0 commit comments

Comments
 (0)