Skip to content

Commit 0dfbd23

Browse files
committed
test_iop fix: assign 'res' to in-place operator
1 parent 87834dd commit 0dfbd23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

array_api_tests/test_special_cases.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1308,7 +1308,7 @@ def test_iop(iop_name, iop, case, oneway_dtypes, oneway_shapes, data):
13081308
note(f"{x2=}")
13091309

13101310
res = xp.asarray(x1, copy=True)
1311-
iop(res, x2)
1311+
res = iop(res, x2)
13121312
# sanity check
13131313
ph.assert_result_shape(iop_name, [x1.shape, x2.shape], res.shape)
13141314

0 commit comments

Comments
 (0)