Skip to content

Commit

Permalink
Fix tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
pp-mo committed Oct 15, 2024
1 parent ca3955f commit 5fa2b46
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/iris/tests/test_pp_to_cube.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def test_regrid_missing_coord(self):
# If the target cube is missing one of the source dimension
# coords, ensure the re-grid fails nicely - i.e. returns None.
self.target.remove_coord("bar")
new_ref = iris.fileformats.rules._ensure_aligned({}, self.ref, self.target)
new_ref, _ = iris.fileformats.rules._ensure_aligned({}, self.ref, self.target)
self.assertIsNone(new_ref)

def test_regrid_codimension(self):
Expand All @@ -92,11 +92,11 @@ def test_regrid_codimension(self):
new_foo = self.target.coord("bar").copy()
new_foo.rename("foo")
self.target.add_aux_coord(new_foo, 0)
new_ref = iris.fileformats.rules._ensure_aligned({}, self.ref, self.target)
new_ref, _ = iris.fileformats.rules._ensure_aligned({}, self.ref, self.target)
self.assertIsNone(new_ref)

def test_regrid_identity(self):
new_ref = iris.fileformats.rules._ensure_aligned({}, self.ref, self.target)
new_ref, _ = iris.fileformats.rules._ensure_aligned({}, self.ref, self.target)
# Bounds don't make it through the re-grid process
self.ref.coord("bar").bounds = None
self.ref.coord("foo").bounds = None
Expand Down

0 comments on commit 5fa2b46

Please sign in to comment.