Skip to content

Commit

Permalink
Add PROJ version range to tests
Browse files Browse the repository at this point in the history
Apparently the images change between PROJ 9.0.0 and 9.0.1
  • Loading branch information
dopplershift committed Jun 29, 2022
1 parent b7fa756 commit 0a6f871
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions lib/cartopy/tests/mpl/test_crs.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@

@pytest.mark.natural_earth
@ImageTesting(["igh_land"],
tolerance=(3.6
if MPL_VERSION.release[:2] < (3, 5)
else 0.5))
tolerance=(3.6 if MPL_VERSION.release[:2] < (3, 5)
or ccrs.PROJ_VERSION < (9, 0, 1) else 0.5))
def test_igh_land():
crs = ccrs.InterruptedGoodeHomolosine(emphasis="land")
ax = plt.axes(projection=crs)
Expand All @@ -26,9 +25,8 @@ def test_igh_land():

@pytest.mark.natural_earth
@ImageTesting(["igh_ocean"],
tolerance=(4.5
if MPL_VERSION.release[:2] < (3, 5)
else 0.5))
tolerance=(4.5 if MPL_VERSION.release[:2] < (3, 5)
or ccrs.PROJ_VERSION < (9, 0, 1) else 0.5))
def test_igh_ocean():
crs = ccrs.InterruptedGoodeHomolosine(
central_longitude=-160, emphasis="ocean"
Expand Down

0 comments on commit 0a6f871

Please sign in to comment.