From 383882e567c1a3fa99c9daa7d10127cee88d1549 Mon Sep 17 00:00:00 2001 From: Anton Volkov Date: Tue, 29 Jul 2025 14:03:40 +0200 Subject: [PATCH 1/2] Enable muted test since dpctl-2053 is resolved --- dpnp/tests/third_party/cupy/testing/_loops.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/dpnp/tests/third_party/cupy/testing/_loops.py b/dpnp/tests/third_party/cupy/testing/_loops.py index f4d7f7a374da..f57e555ea363 100644 --- a/dpnp/tests/third_party/cupy/testing/_loops.py +++ b/dpnp/tests/third_party/cupy/testing/_loops.py @@ -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: From fa935e8ffa7044296f41d24b032907c1ba89f946 Mon Sep 17 00:00:00 2001 From: Anton Volkov Date: Wed, 30 Jul 2025 14:18:32 +0200 Subject: [PATCH 2/2] dpctl returns different exception type comapring to numpy in TestArrayAdvancedIndexingSetitemScalarValueIndexError test --- .../third_party/cupy/core_tests/test_ndarray_adv_indexing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dpnp/tests/third_party/cupy/core_tests/test_ndarray_adv_indexing.py b/dpnp/tests/third_party/cupy/core_tests/test_ndarray_adv_indexing.py index 68a4a68282de..6a635ee53b2c 100644 --- a/dpnp/tests/third_party/cupy/core_tests/test_ndarray_adv_indexing.py +++ b/dpnp/tests/third_party/cupy/core_tests/test_ndarray_adv_indexing.py @@ -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