From e8258cfbf54e1eed7d80330e98fc4b8913f34920 Mon Sep 17 00:00:00 2001 From: Vladislav Perevezentsev Date: Fri, 25 Oct 2024 17:16:37 +0200 Subject: [PATCH] Update test_solve in test_sycl_queue --- tests/test_sycl_queue.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tests/test_sycl_queue.py b/tests/test_sycl_queue.py index 74c65a65a59c..0a36b73f581b 100644 --- a/tests/test_sycl_queue.py +++ b/tests/test_sycl_queue.py @@ -2251,8 +2251,13 @@ def test_solve(matrix, vector, device): a_dp = dpnp.array(a_np, device=device) b_dp = dpnp.array(b_np, device=device) - if a_dp.ndim > 2 and a_dp.device.sycl_device.is_cpu: - pytest.skip("SAT-6842: reported hanging in public CI") + # In numpy 2.0 the broadcast ambiguity has been removed and now + # b is treaded as a single vector if and only if it is 1-dimensional; + # for other cases this signature must be followed + # (..., m, m), (..., m, n) -> (..., m, n) + # https://github.com/numpy/numpy/pull/25914 + if a_dp.ndim > 2 and numpy.lib.NumpyVersion(numpy.__version__) >= "2.0.0": + pytest.skip("SAT-6928") result = dpnp.linalg.solve(a_dp, b_dp) expected = numpy.linalg.solve(a_np, b_np)