Commit 4eda700 1 parent 87c52f5 commit 4eda700 Copy full SHA for 4eda700
File tree 1 file changed +3
-5
lines changed
lib/iris/tests/unit/data_manager
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 6
6
7
7
import pytest
8
8
9
- import iris .exceptions
10
-
11
9
# Import iris.tests first so that some things can be initialised before
12
10
# importing anything else.
13
11
import iris .tests as tests # isort:skip
@@ -33,17 +31,17 @@ def _setup(self):
33
31
34
32
def test_data_same_shape (self ):
35
33
with pytest .warns (match = "" ):
36
- dm = DataManager (self .data , self .data .shape )
34
+ DataManager (self .data , self .data .shape )
37
35
38
36
def test_data_conflicting_shape (self ):
39
37
msg = 'shape" provided does not match "data'
40
38
with pytest .raises (ValueError , match = msg ):
41
- dm = DataManager (self .data , ())
39
+ DataManager (self .data , ())
42
40
43
41
def test_no_data_no_shape (self ):
44
42
msg = 'one of "shape" or "data" should be provided; both are None'
45
43
with pytest .raises (ValueError , match = msg ):
46
- dm = DataManager (None , None )
44
+ DataManager (None , None )
47
45
48
46
49
47
class Test___copy__ (tests .IrisTest ):
You can’t perform that action at this time.
0 commit comments