Skip to content

Commit 4eda700

Browse files
committed
pre-c
1 parent 87c52f5 commit 4eda700

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

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

+3-5
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66

77
import pytest
88

9-
import iris.exceptions
10-
119
# Import iris.tests first so that some things can be initialised before
1210
# importing anything else.
1311
import iris.tests as tests # isort:skip
@@ -33,17 +31,17 @@ def _setup(self):
3331

3432
def test_data_same_shape(self):
3533
with pytest.warns(match=""):
36-
dm = DataManager(self.data, self.data.shape)
34+
DataManager(self.data, self.data.shape)
3735

3836
def test_data_conflicting_shape(self):
3937
msg = 'shape" provided does not match "data'
4038
with pytest.raises(ValueError, match=msg):
41-
dm = DataManager(self.data, ())
39+
DataManager(self.data, ())
4240

4341
def test_no_data_no_shape(self):
4442
msg = 'one of "shape" or "data" should be provided; both are None'
4543
with pytest.raises(ValueError, match=msg):
46-
dm = DataManager(None, None)
44+
DataManager(None, None)
4745

4846

4947
class Test___copy__(tests.IrisTest):

0 commit comments

Comments
 (0)