From 1e0f0cc427c95105a59d48d160b4aa40e86ac8cf Mon Sep 17 00:00:00 2001 From: Vahid Tavanashad Date: Sun, 4 May 2025 15:47:30 -0700 Subject: [PATCH] fix failed test for test_ndarray.py --- 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)))