Skip to content

Commit

Permalink
test_iop fix: assign 'res' to in-place operator
Browse files Browse the repository at this point in the history
  • Loading branch information
simonetgordon committed Jun 27, 2022
1 parent 87834dd commit 0dfbd23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion array_api_tests/test_special_cases.py
Original file line number Diff line number Diff line change
Expand Up @@ -1308,7 +1308,7 @@ def test_iop(iop_name, iop, case, oneway_dtypes, oneway_shapes, data):
note(f"{x2=}")

res = xp.asarray(x1, copy=True)
iop(res, x2)
res = iop(res, x2)
# sanity check
ph.assert_result_shape(iop_name, [x1.shape, x2.shape], res.shape)

Expand Down

0 comments on commit 0dfbd23

Please # to comment.