Skip to content

Commit 575fb09

Browse files
committed
Fix test for new implementation.
1 parent 480f264 commit 575fb09

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

lib/iris/tests/unit/fileformats/um/fast_load_structured_fields/test_group_structured_fields.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# (C) British Crown Copyright 2014 - 2015, Met Office
1+
# (C) British Crown Copyright 2014 - 2018, Met Office
22
#
33
# This file is part of Iris.
44
#
@@ -71,9 +71,7 @@ def _dummy_fields_iter(self, stashes=None, models=None, lbprocs=None):
7171

7272
def _group_result(self, fields):
7373
# Run the testee, but returning just the groups (not FieldCollations).
74-
with mock.patch('iris.fileformats.um._fast_load_structured_fields.'
75-
'FieldCollation', new=lambda args: args):
76-
result = list(group_structured_fields(fields))
74+
result = list(group_structured_fields(fields, collation_class=tuple))
7775
return result
7876

7977
def _test_fields(self, item):

0 commit comments

Comments
 (0)