Skip to content

Commit

Permalink
fixed failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ESadek-MO committed Dec 17, 2024
1 parent c8d2c07 commit 67fb787
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/iris/tests/unit/data_manager/test_DataManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
# See LICENSE in the root of the repository for full licensing details.
"""Unit tests for the :class:`iris._data_manager.DataManager`."""

import iris.exceptions

# Import iris.tests first so that some things can be initialised before
# importing anything else.
import iris.tests as tests # isort:skip
Expand Down Expand Up @@ -170,13 +168,13 @@ def setUp(self):
def test_array_none(self):
self.dm._real_array = None
emsg = "Unexpected data state, got no lazy or real data, and no shape."
with self.assertRaisesRegex(iris.exceptions.InvalidCubeError, emsg):
with self.assertRaisesRegex(ValueError, emsg):
self.dm._assert_axioms()

def test_array_all(self):
self.dm._lazy_array = self.lazy_array
emsg = "Unexpected data state, got both lazy and real data."
with self.assertRaisesRegex(iris.exceptions.InvalidCubeError, emsg):
with self.assertRaisesRegex(ValueError, emsg):
self.dm._assert_axioms()


Expand Down

0 comments on commit 67fb787

Please sign in to comment.