Skip to content

Commit

Permalink
Fixes test that only fails in some environments.
Browse files Browse the repository at this point in the history
  • Loading branch information
MoseleyS committed Jul 30, 2024
1 parent 6829491 commit 5691176
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -274,10 +274,10 @@ def test_3d_cube(self):
def test_circular_non_geographic_cube_raises_approprate_exception(self):
"""Check for error and message with projection coord and circular x axis"""
self.cube.coord(axis="x").circular = True
with self.assertRaises(
with self.assertRaisesRegex(
NotImplementedError,
match="DifferenceBetweenAdjacentGridSquares does not support cubes with "
"circular x-axis that do not use a geographic (i.e. latlon) coordinate system.",
"DifferenceBetweenAdjacentGridSquares does not support cubes with "
r"circular x-axis that do not use a geographic \(i.e. latlon\) coordinate system.",
):
self.plugin.process(self.cube)

Expand Down

0 comments on commit 5691176

Please sign in to comment.