From 6b3515f7e43b44aa726d2e438b75026cae8910c8 Mon Sep 17 00:00:00 2001 From: Evgeni Burovski Date: Fri, 3 Apr 2026 17:24:05 +0000 Subject: [PATCH] ENH: use int32 not int64 in test_elementwise Allows to avoid a failure under JAX w/out JAX_ENABLE_X64 variable (so that int64 dtype is not available). --- array_api_tests/test_operators_and_elementwise_functions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/array_api_tests/test_operators_and_elementwise_functions.py b/array_api_tests/test_operators_and_elementwise_functions.py index 1652a9d9..6ab7ec34 100644 --- a/array_api_tests/test_operators_and_elementwise_functions.py +++ b/array_api_tests/test_operators_and_elementwise_functions.py @@ -2218,7 +2218,7 @@ def test_binary_with_scalars_bool(func_data, x1x2): ], ids=lambda func_data: func_data[0] # use names for test IDs ) -@given(x1x2=hh.array_and_py_scalar([xp.int64])) +@given(x1x2=hh.array_and_py_scalar([xp.int32])) def test_binary_with_scalars_int(func_data, x1x2): assume(_filter_zero(x1x2[1])) assume(_filter_zero(x1x2[0]) and _filter_zero(x1x2[1]))