File: 0001-Skip-tests-failing-on-i386-architectures.patch

package info (click to toggle)
python-cartopy 0.25.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 13,152 kB
  • sloc: python: 16,526; makefile: 159; javascript: 66
file content (48 lines) | stat: -rw-r--r-- 1,738 bytes parent folder | download | duplicates (2)
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
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                       | 1 +
 3 files changed, 7 insertions(+)

--- a/lib/cartopy/tests/crs/test_lambert_azimuthal_equal_area.py
+++ b/lib/cartopy/tests/crs/test_lambert_azimuthal_equal_area.py
@@ -6,12 +6,15 @@
 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:
+    @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
@@ -6,6 +6,7 @@ from xml.etree.ElementTree import ParseE
 
 import matplotlib.pyplot as plt
 import pytest
+import sysconfig
 
 import cartopy.crs as ccrs
 import cartopy.feature as cfeature
@@ -46,6 +47,8 @@ def test_natural_earth_custom():
     return ax.figure
 
 
+@pytest.mark.xfail('i386' in sysconfig.get_config_var('MULTIARCH'),
+                   reason='Limitations of i386 architecture')
 @pytest.mark.network
 @pytest.mark.skipif(not _HAS_PYKDTREE_OR_SCIPY, reason='pykdtree or scipy is required')
 @pytest.mark.mpl_image_compare(filename='gshhs_coastlines.png', tolerance=0.95)