Skip to content

Commit 87c52f5

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

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

lib/iris/tests/test_cube.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ class Terry:
8888

8989
def test_dataless_comparison(self):
9090
cube = iris.cube.Cube(1)
91-
dataless_cube = iris.cube.Cube(shape=(1, ))
92-
dataless_copy = iris.cube.Cube(shape=(1, ))
91+
dataless_cube = iris.cube.Cube(shape=(1,))
92+
dataless_copy = iris.cube.Cube(shape=(1,))
9393

9494
assert cube != dataless_cube
9595
assert dataless_copy == dataless_cube

lib/iris/tests/unit/data_manager/test_DataManager.py

+8-2
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@
33
# This file is part of Iris and is released under the BSD license.
44
# See LICENSE in the root of the repository for full licensing details.
55
"""Unit tests for the :class:`iris._data_manager.DataManager`."""
6+
67
import pytest
78

89
import iris.exceptions
10+
911
# Import iris.tests first so that some things can be initialised before
1012
# importing anything else.
1113
import iris.tests as tests # isort:skip
@@ -21,10 +23,13 @@
2123

2224

2325
class Test__init__:
24-
2526
@pytest.fixture(autouse=True)
2627
def _setup(self):
27-
self.data = np.array([1,])
28+
self.data = np.array(
29+
[
30+
1,
31+
]
32+
)
2833

2934
def test_data_same_shape(self):
3035
with pytest.warns(match=""):
@@ -40,6 +45,7 @@ def test_no_data_no_shape(self):
4045
with pytest.raises(ValueError, match=msg):
4146
dm = DataManager(None, None)
4247

48+
4349
class Test___copy__(tests.IrisTest):
4450
def test(self):
4551
dm = DataManager(np.array(0))

0 commit comments

Comments
 (0)