From c7e2065c14fee26491c032b575305d65f91622b1 Mon Sep 17 00:00:00 2001 From: Evgeni Burovski Date: Tue, 28 Jul 2026 14:24:24 +0200 Subject: [PATCH 1/2] TST: make test_device_to_device resilient on a no_x64 device In `-strict`, the "no_x64" device does not support int64, which is a default on the default device. Thus just use int32 explicitly, which is supported everywhere. --- tests/test_common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_common.py b/tests/test_common.py index 85ed032e..1ebf6e7a 100644 --- a/tests/test_common.py +++ b/tests/test_common.py @@ -203,7 +203,7 @@ def test_device_to_device(library, request): devices = xp.__array_namespace_info__().devices() # Default device - x = xp.asarray([1, 2, 3]) + x = xp.asarray([1, 2, 3], dtype=xp.int32) dev = device(x) for dev in devices: From 6ae6b46e6a7346b4e089cd791ffde5bbda7c0f62 Mon Sep 17 00:00:00 2001 From: Evgeni Burovski Date: Tue, 28 Jul 2026 14:36:39 +0200 Subject: [PATCH 2/2] TST: skip 2024.12 on jax.numpy jax errors out otherwise, says taht only 2025.12 is supported. --- tests/test_array_namespace.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_array_namespace.py b/tests/test_array_namespace.py index 311efc37..7f196387 100644 --- a/tests/test_array_namespace.py +++ b/tests/test_array_namespace.py @@ -24,7 +24,8 @@ def test_array_namespace(request, library, api_version, use_compat): pytest.raises(ValueError, lambda: array_namespace(array, use_compat=use_compat)) return if (library == "sparse" and api_version in ("2023.12", "2024.12")) or ( - library == "jax.numpy" and api_version in ("2021.12", "2022.12", "2023.12") + library == "jax.numpy" and + api_version in ("2021.12", "2022.12", "2023.12", "2024.12") ): xfail(request, "Unsupported API version")