Commit 87c52f5 1 parent 4aec7fc commit 87c52f5 Copy full SHA for 87c52f5
File tree 2 files changed +10
-4
lines changed
2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -88,8 +88,8 @@ class Terry:
88
88
89
89
def test_dataless_comparison (self ):
90
90
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 ,))
93
93
94
94
assert cube != dataless_cube
95
95
assert dataless_copy == dataless_cube
Original file line number Diff line number Diff line change 3
3
# This file is part of Iris and is released under the BSD license.
4
4
# See LICENSE in the root of the repository for full licensing details.
5
5
"""Unit tests for the :class:`iris._data_manager.DataManager`."""
6
+
6
7
import pytest
7
8
8
9
import iris .exceptions
10
+
9
11
# Import iris.tests first so that some things can be initialised before
10
12
# importing anything else.
11
13
import iris .tests as tests # isort:skip
21
23
22
24
23
25
class Test__init__ :
24
-
25
26
@pytest .fixture (autouse = True )
26
27
def _setup (self ):
27
- self .data = np .array ([1 ,])
28
+ self .data = np .array (
29
+ [
30
+ 1 ,
31
+ ]
32
+ )
28
33
29
34
def test_data_same_shape (self ):
30
35
with pytest .warns (match = "" ):
@@ -40,6 +45,7 @@ def test_no_data_no_shape(self):
40
45
with pytest .raises (ValueError , match = msg ):
41
46
dm = DataManager (None , None )
42
47
48
+
43
49
class Test___copy__ (tests .IrisTest ):
44
50
def test (self ):
45
51
dm = DataManager (np .array (0 ))
You can’t perform that action at this time.
0 commit comments