summaryrefslogtreecommitdiff
path: root/sci-libs/cartopy/files/cartopy-0.21.1-fix-test_proj92_1.patch
diff options
context:
space:
mode:
Diffstat (limited to 'sci-libs/cartopy/files/cartopy-0.21.1-fix-test_proj92_1.patch')
-rw-r--r--sci-libs/cartopy/files/cartopy-0.21.1-fix-test_proj92_1.patch46
1 files changed, 46 insertions, 0 deletions
diff --git a/sci-libs/cartopy/files/cartopy-0.21.1-fix-test_proj92_1.patch b/sci-libs/cartopy/files/cartopy-0.21.1-fix-test_proj92_1.patch
new file mode 100644
index 000000000000..7ce52bb23364
--- /dev/null
+++ b/sci-libs/cartopy/files/cartopy-0.21.1-fix-test_proj92_1.patch
@@ -0,0 +1,46 @@
+diff --git a/lib/cartopy/tests/crs/test_lambert_conformal.py b/lib/cartopy/tests/crs/test_lambert_conformal.py
+index 6032d2e5c..c64022ff9 100644
+--- a/lib/cartopy/tests/crs/test_lambert_conformal.py
++++ b/lib/cartopy/tests/crs/test_lambert_conformal.py
+@@ -5,6 +5,7 @@
+ # licensing details.
+
+ from numpy.testing import assert_array_almost_equal
++import pyproj
+ import pytest
+
+ import cartopy.crs as ccrs
+@@ -68,18 +69,29 @@ def test_too_many_parallel(self):
+
+ def test_single_spole(self):
+ s_pole_crs = ccrs.LambertConformal(standard_parallels=[-1.])
++ expected_x = (-19939660, 19939660)
++ expected_y = (-735590302, -8183795)
++ if pyproj.__proj_version__ >= '9.2.0':
++ expected_x = (-19840440, 19840440)
++ expected_y = (-370239953, -8191953)
++ print(s_pole_crs.x_limits)
+ assert_array_almost_equal(s_pole_crs.x_limits,
+- (-19939660, 19939660),
++ expected_x,
+ decimal=0)
+ assert_array_almost_equal(s_pole_crs.y_limits,
+- (-735590302, -8183795),
++ expected_y,
+ decimal=0)
+
+ def test_single_npole(self):
+ n_pole_crs = ccrs.LambertConformal(standard_parallels=[1.])
++ expected_x = (-20130569, 20130569)
++ expected_y = (-8170229, 726200683)
++ if pyproj.__proj_version__ >= '9.2.0':
++ expected_x = (-20222156, 20222156)
++ expected_y = (-8164817, 360848719)
+ assert_array_almost_equal(n_pole_crs.x_limits,
+- (-20130569, 20130569),
++ expected_x,
+ decimal=0)
+ assert_array_almost_equal(n_pole_crs.y_limits,
+- (-8170229, 726200683),
++ expected_y,
+ decimal=0)