[Git][debian-gis-team/pyresample][master] 2 commits: Fix test failure on 32it architectures
Antonio Valentino (@antonio.valentino)
gitlab at salsa.debian.org
Fri Nov 25 08:04:22 GMT 2022
Antonio Valentino pushed to branch master at Debian GIS Project / pyresample
Commits:
3fa40ad8 by Antonio Valentino at 2022-11-25T07:07:22+00:00
Fix test failure on 32it architectures
- - - - -
f0f7062d by Antonio Valentino at 2022-11-25T07:07:47+00:00
Set distribution to unstable
- - - - -
3 changed files:
- debian/changelog
- + debian/patches/0005-Relax-accuracy-for-legacy-data-test.patch
- debian/patches/series
Changes:
=====================================
debian/changelog
=====================================
@@ -1,3 +1,11 @@
+pyresample (1.26.0-2) unstable; urgency=medium
+
+ * debian/patches:
+ - new 0005-Relax-accuracy-for-legacy-data-test.patch.
+ Fix test failure on 32bit architectures.
+
+ -- Antonio Valentino <antonio.valentino at tiscali.it> Fri, 25 Nov 2022 07:07:27 +0000
+
pyresample (1.26.0-1) unstable; urgency=medium
* New upstream release.
=====================================
debian/patches/0005-Relax-accuracy-for-legacy-data-test.patch
=====================================
@@ -0,0 +1,23 @@
+From: Antonio Valentino <antonio.valentino at tiscali.it>
+Date: Fri, 25 Nov 2022 07:04:14 +0000
+Subject: Relax accuracy for legacy data test
+
+---
+ pyresample/test/test_dask_ewa.py | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/pyresample/test/test_dask_ewa.py b/pyresample/test/test_dask_ewa.py
+index 94f55c3..9958ff3 100644
+--- a/pyresample/test/test_dask_ewa.py
++++ b/pyresample/test/test_dask_ewa.py
+@@ -342,7 +342,9 @@ class TestDaskEWAResampler:
+ maximum_weight_mode=maximum_weight_mode)
+ legacy_arr = legacy_data.compute()
+
+- np.testing.assert_allclose(new_arr, legacy_arr)
++ import sys
++ rtol = 1e-7 if sys.maxsize > 2**32 else 1e-4
++ np.testing.assert_allclose(new_arr, legacy_arr, rtol=rtol)
+
+ @pytest.mark.parametrize(
+ ('input_shape', 'input_dims', 'as_np'),
=====================================
debian/patches/series
=====================================
@@ -2,3 +2,4 @@
0002-Skip-test-on-deprecated-basemap.patch
0003-Fix-mathjax-path.patch
0004-Versioneer-path.patch
+0005-Relax-accuracy-for-legacy-data-test.patch
View it on GitLab: https://salsa.debian.org/debian-gis-team/pyresample/-/compare/c80962ac07f73d4bdbba00be283ae0e369b8e2ae...f0f7062d5f7df09db59daf445a960cae4adeba5e
--
View it on GitLab: https://salsa.debian.org/debian-gis-team/pyresample/-/compare/c80962ac07f73d4bdbba00be283ae0e369b8e2ae...f0f7062d5f7df09db59daf445a960cae4adeba5e
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/20221125/e980e867/attachment-0001.htm>
More information about the Pkg-grass-devel
mailing list