Skip to content

Commit

Permalink
reverse() is an in-place operation.
Browse files Browse the repository at this point in the history
  • Loading branch information
trexfeathers committed Oct 3, 2024
1 parent 609e19b commit 32947f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/iris/tests/integration/test_netcdf__loadsaveattrs.py
Original file line number Diff line number Diff line change
Expand Up @@ -1022,7 +1022,7 @@ def test_16_localstyle(self, local_attr, origin_style, do_split):
expected_result = [expect_global, expect_var]
if do_split and origin_style == "input_global":
# The result is simply the "other way around"
expected_result = expected_result.reverse()
expected_result.reverse()
self.check_roundtrip_results(expected_result)

@pytest.mark.parametrize("testcase", _MATRIX_TESTCASES[:max_param_attrs])
Expand Down

0 comments on commit 32947f6

Please sign in to comment.