Skip to content
GitLab
Explore
Sign in
Register
Commits on Source (2)
Fix tests on i386
· cc3819cc
Antonio Valentino
authored
Dec 23, 2019
cc3819cc
Set distribution to unstable
· b72fa321
Antonio Valentino
authored
Dec 23, 2019
b72fa321
Hide whitespace changes
Inline
Side-by-side
debian/changelog
View file @
b72fa321
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@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 → 100644
View file @
b72fa321
From: Antonio Valentino <antonio.valentino@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
View file @
b72fa321
...
...
@@ -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