[Git][debian-gis-team/pyresample][master] 2 commits: Fix tests on i386

Antonio Valentino gitlab at salsa.debian.org
Mon Dec 23 17:27:56 GMT 2019



Antonio Valentino pushed to branch master at Debian GIS Project / pyresample


Commits:
cc3819cc by Antonio Valentino at 2019-12-23T17:11:23Z
Fix tests on i386

- - - - -
b72fa321 by Antonio Valentino at 2019-12-23T17:11:40Z
Set distribution to unstable

- - - - -


3 changed files:

- debian/changelog
- + debian/patches/0007-Fix-tests-on-i386.patch
- debian/patches/series


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,11 @@
+pyresample (1.14.0-2) unstable; urgency=medium
+
+  * debian/patches:
+    - new 0007-Fix-tests-on-i386.patch: do not use equality
+      to test floating point values
+
+ -- Antonio Valentino <antonio.valentino at tiscali.it>  Mon, 23 Dec 2019 17:11:33 +0000
+
 pyresample (1.14.0-1) unstable; urgency=medium
 
   * New upstream release.


=====================================
debian/patches/0007-Fix-tests-on-i386.patch
=====================================
@@ -0,0 +1,24 @@
+From: Antonio Valentino <antonio.valentino at tiscali.it>
+Date: Mon, 23 Dec 2019 16:51:54 +0000
+Subject: Fix tests on i386
+
+---
+ pyresample/test/test_gradient.py | 5 +++--
+ 1 file changed, 3 insertions(+), 2 deletions(-)
+
+diff --git a/pyresample/test/test_gradient.py b/pyresample/test/test_gradient.py
+index 47e38eb..1066e45 100644
+--- a/pyresample/test/test_gradient.py
++++ b/pyresample/test/test_gradient.py
+@@ -64,8 +64,9 @@ class TestGradientResampler(unittest.TestCase):
+         cdst_y = self.resampler.dst_y.compute()
+         assert(np.isinf(cdst_x[0, 0]))
+         assert(np.isinf(cdst_y[0, 0]))
+-        assert(cdst_y[90, 180] == -55285.59156767167)
+-        assert(cdst_x[90, 180] == 55656.13605425304)
++        from numpy import testing as npt
++        npt.assert_allclose(cdst_y[90, 180], -55285.59156767167)
++        npt.assert_allclose(cdst_x[90, 180], 55656.13605425304)
+         assert(self.resampler.use_input_coords)
+         pgsoic.assert_called_once_with(data.data[:, :],
+                                        self.resampler.src_x,


=====================================
debian/patches/series
=====================================
@@ -4,3 +4,4 @@
 0004-Detect-broken-basemap.patch
 0005-Comapt-with-dask-1.0.patch
 0006-Skip-test-on-deprecatet-basemap.patch
+0007-Fix-tests-on-i386.patch



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

-- 
View it on GitLab: https://salsa.debian.org/debian-gis-team/pyresample/compare/f7d644d9d7320a2bafeee60ccb06e4febd295e0c...b72fa321a0c205053a735ca7ad13a991180ba994
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/20191223/18dc13a0/attachment-0001.html>


More information about the Pkg-grass-devel mailing list