[python-cartopy] 01/03: Skip tests failing on 32-bit architectures
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Tue Jan 17 18:58:48 UTC 2017
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch master
in repository python-cartopy.
commit 774518c20dc5ec79f844971168bb1227111ae9f3
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date: Sat Jan 14 10:26:34 2017 +0000
Skip tests failing on 32-bit architectures
---
lib/cartopy/tests/crs/test_lambert_azimuthal_equal_area.py | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/lib/cartopy/tests/crs/test_lambert_azimuthal_equal_area.py b/lib/cartopy/tests/crs/test_lambert_azimuthal_equal_area.py
index 4045a9e..0337c8d 100644
--- a/lib/cartopy/tests/crs/test_lambert_azimuthal_equal_area.py
+++ b/lib/cartopy/tests/crs/test_lambert_azimuthal_equal_area.py
@@ -25,6 +25,9 @@ from nose.tools import assert_equal
import cartopy.crs as ccrs
+# https://docs.python.org/3/library/platform.html#platform.architecture
+import sys
+is_64bits = sys.maxsize > 2**32
class TestLambertAzimuthalEqualArea(unittest.TestCase):
def test_default(self):
@@ -36,9 +39,10 @@ class TestLambertAzimuthalEqualArea(unittest.TestCase):
assert_almost_equal(np.array(crs.x_limits),
[-12755636.1863, 12755636.1863],
decimal=4)
- assert_almost_equal(np.array(crs.y_limits),
- [-12727770.598700099, 12727770.598700099],
- decimal=4)
+ if is_64bits:
+ assert_almost_equal(np.array(crs.y_limits),
+ [-12727770.598700099, 12727770.598700099],
+ decimal=4)
def test_eccentric_globe(self):
globe = ccrs.Globe(semimajor_axis=1000, semiminor_axis=500,
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/python-cartopy.git
More information about the debian-science-commits
mailing list