From ab3205a5eb84352e9daab535584f995c6b2bf93a 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 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/plots/test_mapping.py b/tests/plots/test_mapping.py index 8992112b790..edd8af6615f 100644 --- a/tests/plots/test_mapping.py +++ b/tests/plots/test_mapping.py @@ -8,6 +8,7 @@ ccrs = pytest.importorskip('cartopy.crs') from metpy.plots.mapping import CFProjection # noqa: E402 +from metpy.testing import version_check def test_inverse_flattening_0(): @@ -147,6 +148,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 +156,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}