Skip to content

Commit ff865bc

Browse files
committed
TODOs for test_divide
1 parent 5889a7e commit ff865bc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: array_api_tests/test_operators_and_elementwise_functions.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -959,12 +959,14 @@ def test_divide(ctx, data):
959959
left = data.draw(ctx.left_strat, label=ctx.left_sym)
960960
right = data.draw(ctx.right_strat, label=ctx.right_sym)
961961
if ctx.right_is_scalar:
962-
assume
962+
assume # TODO: assume what?
963963

964964
res = ctx.func(left, right)
965965

966966
binary_param_assert_dtype(ctx, left, right, res)
967967
binary_param_assert_shape(ctx, left, right, res)
968+
if res.dtype in dh.complex_dtypes:
969+
return # TOOD: handle complex division
968970
binary_param_assert_against_refimpl(
969971
ctx,
970972
left,

0 commit comments

Comments
 (0)