1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67
|
From: Ghislain Antony Vaillant <ghisvail@gmail.com>
Date: Sat, 14 Jan 2017 10:26:34 +0000
Subject: Skip tests failing on i386 architectures
Forwarded: not-needed
---
lib/cartopy/tests/crs/test_lambert_azimuthal_equal_area.py | 3 +++
lib/cartopy/tests/mpl/test_features.py | 3 +++
lib/cartopy/tests/mpl/test_images.py | 3 +++
3 files changed, 9 insertions(+)
--- a/lib/cartopy/tests/crs/test_lambert_azimuthal_equal_area.py
+++ b/lib/cartopy/tests/crs/test_lambert_azimuthal_equal_area.py
@@ -20,12 +20,15 @@ from __future__ import (absolute_import,
import numpy as np
from numpy.testing import assert_almost_equal
import pytest
+import sysconfig
import cartopy.crs as ccrs
from .helpers import check_proj_params
class TestLambertAzimuthalEqualArea(object):
+ @pytest.mark.xfail('i386' in sysconfig.get_config_var('MULTIARCH'),
+ reason='Limitations of i386 architecture')
def test_default(self):
crs = ccrs.LambertAzimuthalEqualArea()
other_args = {'ellps=WGS84', 'lon_0=0.0', 'lat_0=0.0', 'x_0=0.0',
--- a/lib/cartopy/tests/mpl/test_features.py
+++ b/lib/cartopy/tests/mpl/test_features.py
@@ -19,6 +19,7 @@ from __future__ import (absolute_import,
import matplotlib.pyplot as plt
import pytest
+import sysconfig
import cartopy.crs as ccrs
import cartopy.feature as cfeature
@@ -53,6 +54,8 @@ def test_natural_earth_custom():
ax.set_ylim((58, 72))
+@pytest.mark.xfail('i386' in sysconfig.get_config_var('MULTIARCH'),
+ reason='Limitations of i386 architecture')
@ImageTesting(['gshhs_coastlines'],
tolerance=3.3 if MPL_VERSION < '2' else 0.95)
def test_gshhs():
--- a/lib/cartopy/tests/mpl/test_images.py
+++ b/lib/cartopy/tests/mpl/test_images.py
@@ -18,6 +18,7 @@
from __future__ import (absolute_import, division, print_function)
import os
+import sysconfig
import types
import numpy as np
@@ -186,6 +187,8 @@ def test_pil_Image():
extent=[-180, 180, -90, 90])
+@pytest.mark.xfail('i386' in sysconfig.get_config_var('MULTIARCH'),
+ reason='Limitations of i386 architecture')
@pytest.mark.xfail((5, 0, 0) <= ccrs.PROJ4_VERSION < (5, 1, 0),
reason='Proj Orthographic projection is buggy.',
strict=True)
|