Skip to content

Commit 887dcf8

Browse files
committed
update cupy test for unique_values to align with changes in cupy-9161
1 parent abd23bc commit 887dcf8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dpnp/tests/third_party/cupy/manipulation_tests/test_add_remove.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -340,13 +340,13 @@ def test_unique_inverse(self, xp, dtype, attr):
340340
a = testing.shaped_random((100, 100), xp, dtype)
341341
return getattr(xp.unique_inverse(a), attr)
342342

343-
# TODO: include numpy-2.3 when dpnp-issue-2476 is addressed
344-
@testing.with_requires("numpy>=2.0", "numpy<2.3")
343+
@testing.with_requires("numpy>=2.0")
345344
@testing.for_all_dtypes(no_float16=True, no_bool=True, no_complex=True)
346345
@testing.numpy_cupy_array_equal()
347346
def test_unique_values(self, xp, dtype):
348347
a = testing.shaped_random((100, 100), xp, dtype)
349-
return xp.unique_values(a)
348+
out = xp.unique_values(a) # may not be sorted from NumPy 2.3.
349+
return xp.sort(out)
350350

351351

352352
@testing.parameterize(*testing.product({"trim": ["fb", "f", "b"]}))

0 commit comments

Comments
 (0)