From 0dfbd236399157a3170cbe4bf182164d20dfb965 Mon Sep 17 00:00:00 2001 From: Simone G <74716948+simonetgordon@users.noreply.github.com> Date: Mon, 27 Jun 2022 13:48:56 +0100 Subject: [PATCH] test_iop fix: assign 'res' to in-place operator --- array_api_tests/test_special_cases.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/array_api_tests/test_special_cases.py b/array_api_tests/test_special_cases.py index e6580863..9999d9b0 100644 --- a/array_api_tests/test_special_cases.py +++ b/array_api_tests/test_special_cases.py @@ -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)