Skip to content

Commit fa935e8

Browse files
committed
dpctl returns different exception type comapring to numpy in TestArrayAdvancedIndexingSetitemScalarValueIndexError test
1 parent d92b22b commit fa935e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dpnp/tests/third_party/cupy/core_tests/test_ndarray_adv_indexing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -751,7 +751,7 @@ class TestArrayAdvancedIndexingSetitemScalarValueIndexError:
751751
def test_adv_setitem(self):
752752
for xp in (numpy, cupy):
753753
a = xp.zeros(self.shape)
754-
with pytest.raises(IndexError):
754+
with pytest.raises((IndexError, ValueError)):
755755
a[self.indexes] = self.value
756756

757757

0 commit comments

Comments
 (0)