Skip to content

Commit

Permalink
Fix test for new implementation.
Browse files Browse the repository at this point in the history
  • Loading branch information
pp-mo committed Mar 13, 2018
1 parent 480f264 commit 575fb09
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# (C) British Crown Copyright 2014 - 2015, Met Office
# (C) British Crown Copyright 2014 - 2018, Met Office
#
# This file is part of Iris.
#
Expand Down Expand Up @@ -71,9 +71,7 @@ def _dummy_fields_iter(self, stashes=None, models=None, lbprocs=None):

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

def _test_fields(self, item):
Expand Down

0 comments on commit 575fb09

Please sign in to comment.