From 952c83d7cb546417ae26de0bcb5698eb8ce4b780 Mon Sep 17 00:00:00 2001 From: Anton Volkov Date: Tue, 15 Jul 2025 15:21:05 +0200 Subject: [PATCH 1/2] Enable muted test since dpctl-2121 is resolved --- .../third_party/cupy/core_tests/test_ndarray_copy_and_view.py | 1 - 1 file changed, 1 deletion(-) diff --git a/dpnp/tests/third_party/cupy/core_tests/test_ndarray_copy_and_view.py b/dpnp/tests/third_party/cupy/core_tests/test_ndarray_copy_and_view.py index 25d30b69607..601f955436f 100644 --- a/dpnp/tests/third_party/cupy/core_tests/test_ndarray_copy_and_view.py +++ b/dpnp/tests/third_party/cupy/core_tests/test_ndarray_copy_and_view.py @@ -386,7 +386,6 @@ def test_astype_strides_broadcast(self, xp, src_dtype, dst_dtype): dst = astype_without_warning(src, dst_dtype, order="K") return get_strides(xp, dst) - @pytest.mark.skip("dpctl-2121") @testing.numpy_cupy_array_equal() def test_astype_boolean_view(self, xp): # See #4354 From 351ede2c80ced40c4dfa5f66e5bd5aae0ac76dcc Mon Sep 17 00:00:00 2001 From: Anton Volkov Date: Fri, 25 Jul 2025 10:56:30 +0200 Subject: [PATCH 2/2] Correct dependency on numpy version in test_1d_equal_nan_axis0 --- dpnp/tests/test_manipulation.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dpnp/tests/test_manipulation.py b/dpnp/tests/test_manipulation.py index 5fc3d7df8c5..62cc4d10e60 100644 --- a/dpnp/tests/test_manipulation.py +++ b/dpnp/tests/test_manipulation.py @@ -1836,8 +1836,8 @@ def test_equal_nan(self, eq_nan_kwd): expected = numpy.unique(a, **eq_nan_kwd) assert_array_equal(result, expected) - # TODO: uncomment once numpy 2.3.2 release is published - # @testing.with_requires("numpy>=2.3.2") + # TODO: uncomment once numpy 2.4.0 release is published + # @testing.with_requires("numpy>=2.4.0") def test_1d_equal_nan_axis0(self): a = numpy.array([numpy.nan, 0, 0, numpy.nan]) ia = dpnp.array(a) @@ -1845,7 +1845,7 @@ def test_1d_equal_nan_axis0(self): result = dpnp.unique(ia, axis=0, equal_nan=True) expected = numpy.unique(a, axis=0, equal_nan=True) # TODO: remove when numpy#29372 is released - if numpy_version() < "2.3.2": + if numpy_version() < "2.4.0": expected = numpy.array([0.0, numpy.nan]) assert_array_equal(result, expected)