From 2c19355ee969142d493f9d7e5fc7f31a8b92b9cb Mon Sep 17 00:00:00 2001 From: Anton Volkov Date: Sun, 4 May 2025 21:03:17 +0200 Subject: [PATCH 1/2] Pin setuptools to 79.0.1 in public CI --- environments/build_with_oneapi.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/environments/build_with_oneapi.yml b/environments/build_with_oneapi.yml index 02f4624fc1e6..443b7a5202c9 100644 --- a/environments/build_with_oneapi.yml +++ b/environments/build_with_oneapi.yml @@ -7,4 +7,5 @@ dependencies: - ninja - numpy - pytest + - setuptools=79.0.1 - scikit-build From 25c80e6c478933ec0bdeed9414425f5cf1304af9 Mon Sep 17 00:00:00 2001 From: Vahid Tavanashad <120411540+vtavana@users.noreply.github.com> Date: Mon, 5 May 2025 07:24:29 -0500 Subject: [PATCH 2/2] fix failed test in `test_ndarray.py` (#2435) The behavior of `repr` was modified in https://github.com/IntelPython/dpctl/pull/2067. Tests in `dpnp` should be modified to align with this new behavior. --- dpnp/tests/test_ndarray.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dpnp/tests/test_ndarray.py b/dpnp/tests/test_ndarray.py index b1840652d40b..0a4fea422fc9 100644 --- a/dpnp/tests/test_ndarray.py +++ b/dpnp/tests/test_ndarray.py @@ -333,7 +333,7 @@ def test_print_dpnp_special_character(character): def test_print_dpnp_1d(): dtype = dpnp.default_float_type() result = repr(dpnp.arange(10000, dtype=dtype)) - expected = "array([0.000e+00, 1.000e+00, 2.000e+00, ..., 9.997e+03, 9.998e+03,\n 9.999e+03])" + expected = "array([0.000e+00, 1.000e+00, 2.000e+00, ..., 9.997e+03, 9.998e+03,\n 9.999e+03], shape=(10000,))" if not has_support_aspect64(): expected = expected[:-1] + ", dtype=float32)" assert result == expected @@ -361,9 +361,9 @@ def test_print_dpnp_2d(): def test_print_dpnp_zero_shape(): result = repr(dpnp.empty(shape=(0, 0))) if has_support_aspect64(): - expected = "array([])" + expected = "array([], shape=(0, 0), dtype=float64)" else: - expected = "array([], dtype=float32)" + expected = "array([], shape=(0, 0), dtype=float32)" assert result == expected result = str(dpnp.empty(shape=(0, 0)))