Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -751,7 +751,7 @@ class TestArrayAdvancedIndexingSetitemScalarValueIndexError:
def test_adv_setitem(self):
for xp in (numpy, cupy):
a = xp.zeros(self.shape)
with pytest.raises(IndexError):
with pytest.raises((IndexError, ValueError)):
a[self.indexes] = self.value


Expand Down
4 changes: 1 addition & 3 deletions dpnp/tests/third_party/cupy/testing/_loops.py
Original file line number Diff line number Diff line change
Expand Up @@ -408,9 +408,7 @@ def test_func(*args, **kw):
if cupy_r.shape == ():
skip = (mask == 0).all()
else:
# mask is numpy.ndarray here which is not supported now
# TODO remove asarray() once dpctl-2053 is addressed
cupy_r = cupy_r[cupy.asarray(mask)].asnumpy()
cupy_r = cupy_r[mask].asnumpy()
numpy_r = numpy_r[mask]

if not skip:
Expand Down
Loading