From a4c62732625b0c5f64dd4f44644c50aaa07e4527 Mon Sep 17 00:00:00 2001 From: Ryan May Date: Fri, 17 May 2024 15:11:46 -0600 Subject: [PATCH] MNT: Mark some mapping tests as xfail on Cartopy 0.23.0 This is due to SciTools/cartopy#2377, which has been fixed upstream and will be in the next release. --- tests/plots/test_mapping.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/plots/test_mapping.py b/tests/plots/test_mapping.py index 8992112b790..271c29fc652 100644 --- a/tests/plots/test_mapping.py +++ b/tests/plots/test_mapping.py @@ -5,6 +5,8 @@ import pytest +from metpy.testing import version_check + ccrs = pytest.importorskip('cartopy.crs') from metpy.plots.mapping import CFProjection # noqa: E402 @@ -147,6 +149,7 @@ def test_lcc(): assert crs.globe.to_proj4_params()['ellps'] == 'sphere' +@pytest.mark.xfail(version_check('cartopy==0.23.0'), reason='SciTools/cartopy#2377') def test_lcc_minimal(): """Test handling lambert conformal conic projection with minimal attributes.""" attrs = {'grid_mapping_name': 'lambert_conformal_conic'} @@ -154,6 +157,7 @@ def test_lcc_minimal(): assert isinstance(crs, ccrs.LambertConformal) +@pytest.mark.xfail(version_check('cartopy==0.23.0'), reason='SciTools/cartopy#2377') def test_lcc_single_std_parallel(): """Test lambert conformal projection with one standard parallel.""" attrs = {'grid_mapping_name': 'lambert_conformal_conic', 'standard_parallel': 25}