[Git][debian-gis-team/pyresample][master] 3 commits: Add patch to fix TestArc failure on some architectures.

Bas Couwenberg gitlab at salsa.debian.org
Tue Jun 12 14:57:58 BST 2018


Bas Couwenberg pushed to branch master at Debian GIS Project / pyresample


Commits:
bccfb512 by Bas Couwenberg at 2018-06-12T14:38:00+02:00
Add patch to fix TestArc failure on some architectures.

- - - - -
3244ddc9 by Bas Couwenberg at 2018-06-12T14:55:43+02:00
Set distribution to unstable.

- - - - -
ad75f7ec by Bas Couwenberg at 2018-06-12T15:57:46+02:00
Mark test_spherical.patch as Forwarded.

- - - - -


3 changed files:

- debian/changelog
- debian/patches/series
- + debian/patches/test_spherical.patch


Changes:

=====================================
debian/changelog
=====================================
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+pyresample (1.9.3-2) unstable; urgency=medium
+
+  * Team upload.
+  * Add patch to fix TestArc failure on some architectures.
+
+ -- Bas Couwenberg <sebastic at debian.org>  Tue, 12 Jun 2018 14:55:34 +0200
+
 pyresample (1.9.3-1) unstable; urgency=medium
 
   [ Antonio Valentino ]


=====================================
debian/patches/series
=====================================
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 0001-fix-doc-build.patch
 0002-fix-proj4-initialization.patch
+test_spherical.patch


=====================================
debian/patches/test_spherical.patch
=====================================
--- /dev/null
+++ b/debian/patches/test_spherical.patch
@@ -0,0 +1,16 @@
+Description: Fix TestArc failure on some architectures.
+ AssertionError: array([5.0575149]) != 5.057514896828209
+Author: Bas Couwenberg <sebastic at debian.org>
+Forwarded: https://github.com/pytroll/pyresample/pull/127
+
+--- a/pyresample/test/test_spherical.py
++++ b/pyresample/test/test_spherical.py
+@@ -185,7 +185,7 @@ class TestArc(unittest.TestCase):
+         lon, lat = arc1.intersection(arc2)
+ 
+         self.assertTrue(np.allclose(np.rad2deg(lon), 5))
+-        self.assertEquals(np.rad2deg(lat), 5.0575148968282093)
++        self.assertEquals(np.rad2deg(lat).round(7), round(5.0575148968282093, 7))
+ 
+         arc1 = Arc(SCoordinate(0, 0),
+                    SCoordinate(np.deg2rad(10), np.deg2rad(10)))



View it on GitLab: https://salsa.debian.org/debian-gis-team/pyresample/compare/cfd27bd7bdd915f37a1c1fa1e1660d8430208aeb...ad75f7ec6837f3003dd0d3724979c1feb70ef912

-- 
View it on GitLab: https://salsa.debian.org/debian-gis-team/pyresample/compare/cfd27bd7bdd915f37a1c1fa1e1660d8430208aeb...ad75f7ec6837f3003dd0d3724979c1feb70ef912
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-grass-devel/attachments/20180612/5f5e1adf/attachment-0001.html>


More information about the Pkg-grass-devel mailing list