Skip to content

Commit de73fb7

Browse files
committed
ENH: use int32 not int64 in test_elementwise
Allows to avoid a failure under JAX w/out JAX_ENABLE_X64 variable (so that there are no int64 dtype).
1 parent a71706f commit de73fb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

array_api_tests/test_operators_and_elementwise_functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2218,7 +2218,7 @@ def test_binary_with_scalars_bool(func_data, x1x2):
22182218
],
22192219
ids=lambda func_data: func_data[0] # use names for test IDs
22202220
)
2221-
@given(x1x2=hh.array_and_py_scalar([xp.int64]))
2221+
@given(x1x2=hh.array_and_py_scalar([xp.int32]))
22222222
def test_binary_with_scalars_int(func_data, x1x2):
22232223
assume(_filter_zero(x1x2[1]))
22242224
assume(_filter_zero(x1x2[0]) and _filter_zero(x1x2[1]))

0 commit comments

Comments
 (0)