Skip to content

Commit 05b96ae

Browse files
committed
Update div-related testing with spec changes
1 parent 0f2ef0a commit 05b96ae

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

array_api_tests/dtype_helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ def result_type(*dtypes: DataType):
216216
"ceil": numeric_dtypes,
217217
"cos": float_dtypes,
218218
"cosh": float_dtypes,
219-
"divide": numeric_dtypes,
219+
"divide": float_dtypes,
220220
"equal": all_dtypes,
221221
"exp": float_dtypes,
222222
"expm1": float_dtypes,

array_api_tests/test_operators_and_elementwise_functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ def test_cosh(x):
651651
ah.assert_exactly_equal(domain, codomain)
652652

653653

654-
@pytest.mark.parametrize(binary_argnames, make_binary_params("divide", dh.numeric_dtypes))
654+
@pytest.mark.parametrize(binary_argnames, make_binary_params("divide", dh.float_dtypes))
655655
@given(data=st.data())
656656
def test_divide(
657657
func_name,

0 commit comments

Comments
 (0)