Skip to content

Commit 87c2c4a

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 50426cd commit 87c2c4a

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

lib/iris/tests/integration/test_netcdf__loadsaveattrs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1022,7 +1022,7 @@ def test_16_localstyle(self, local_attr, origin_style, do_split):
10221022
expected_result = [expect_global, expect_var]
10231023
if do_split and origin_style == "input_global":
10241024
# The result is simply the "other way around"
1025-
expected_result = expected_result[::-1]
1025+
expected_result.reverse()
10261026
self.check_roundtrip_results(expected_result)
10271027

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

lib/iris/tests/unit/fileformats/nc_load_rules/actions/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def run_testcase(self, warning_regex=None, **testcase_kwargs):
140140
if self.debug_info:
141141
print("\nCube:")
142142
print(cube)
143-
print("")
143+
print()
144144
return cube
145145

146146
def _make_testcase_cdl(self, **kwargs):

lib/iris/tests/unit/fileformats/nc_load_rules/actions/test__latlon_dimcoords.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,9 @@ def check_result(
133133
self.assertEqual(1, len(cube.coords(dim_coords=True)))
134134
(coord,) = coords
135135
if self.debug_info:
136-
print("")
136+
print()
137137
print("DEBUG : result coord =", coord)
138-
print("")
138+
print()
139139

140140
coord_stdname, coord_longname, coord_units, coord_crs = [
141141
getattr(coord, name)

0 commit comments

Comments
 (0)