From d348b4d0a36da92ce74b9e53a883e87f22c89d2f Mon Sep 17 00:00:00 2001 From: Nikita Grigorian Date: Mon, 15 Dec 2025 21:58:52 -0800 Subject: [PATCH] rewrite test_roll_empty to test_roll_scalar this test had been failing on newer numpy versions and contained undefined behavior --- dpctl/tests/test_usm_ndarray_manipulation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dpctl/tests/test_usm_ndarray_manipulation.py b/dpctl/tests/test_usm_ndarray_manipulation.py index 5b11df1f60..35c01b4acd 100644 --- a/dpctl/tests/test_usm_ndarray_manipulation.py +++ b/dpctl/tests/test_usm_ndarray_manipulation.py @@ -582,10 +582,10 @@ def test_flip_multiple_axes(data): assert_array_equal(Ynp, dpt.asnumpy(Y)) -def test_roll_empty(): +def test_roll_scalar(): q = get_queue_or_skip() - Xnp = np.empty([]) + Xnp = np.ones([], dtype="f4") X = dpt.asarray(Xnp, sycl_queue=q) Y = dpt.roll(X, 1)