Antonio Valentino pushed to branch master at Debian GIS Project / python-geotiepoints
Commits: ee86a694 by Antonio Valentino at 2023-06-12T07:14:32+00:00 Fix tests on i386 - - - - - 3 changed files: - debian/changelog - + debian/patches/0003-Fix-tests-on-i386-arch.patch - debian/patches/series Changes: ===================================== debian/changelog ===================================== @@ -8,7 +8,9 @@ python-geotiepoints (1.6.0-1) UNRELEASED; urgency=medium [ Antonio Valentino ] * New upstream release. * Update dates in d/copyright. - * Refresh all patches. + * debian/patches: + - refresh all patches + - new 0003-Fix-tests-on-i386-arch.patch. * Build-depend on pyresample. * Bump debhelper-compat version to 13. ===================================== debian/patches/0003-Fix-tests-on-i386-arch.patch ===================================== @@ -0,0 +1,34 @@ +From: Antonio Valentino <[email protected]> +Date: Mon, 12 Jun 2023 06:29:36 +0000 +Subject: Fix tests on i386 arch + +--- + geotiepoints/tests/test_interpolator.py | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/geotiepoints/tests/test_interpolator.py b/geotiepoints/tests/test_interpolator.py +index 156d4cc..0ed409b 100644 +--- a/geotiepoints/tests/test_interpolator.py ++++ b/geotiepoints/tests/test_interpolator.py +@@ -349,12 +349,12 @@ class TestSingleGridInterpolator: + fine_y = np.arange(32) + + res = grid_interpolator.interpolate((fine_y, fine_x), method="cubic") +- np.testing.assert_allclose(res, self.expected) ++ np.testing.assert_allclose(res, self.expected, atol=2e-9) + + def test_interpolate_slices(self, grid_interpolator): + """Test that interpolation from slices is working.""" + res = grid_interpolator.interpolate_slices((slice(0, 32), slice(0, 16)), method="cubic") +- np.testing.assert_allclose(res, self.expected) ++ np.testing.assert_allclose(res, self.expected, atol=2e-9) + + @pytest.mark.parametrize("chunks, expected_chunks", [(10, (10, 10)), + ((10, 5), (10, 5))]) +@@ -376,5 +376,5 @@ class TestSingleGridInterpolator: + assert res.chunks[0][0] == v_chunk + assert res.chunks[1][0] == h_chunk + +- np.testing.assert_allclose(res, self.expected) ++ np.testing.assert_allclose(res, self.expected, atol=2e-9) + assert interpolate.called ===================================== debian/patches/series ===================================== @@ -1,2 +1,3 @@ 0001-Skip-tests-using-external-data.patch 0002-Remove-versineer-from-pyproject-requires.patch +0003-Fix-tests-on-i386-arch.patch View it on GitLab: https://salsa.debian.org/debian-gis-team/python-geotiepoints/-/commit/ee86a694de0bf2a8bbd7df2c40137e13800ffed5 -- View it on GitLab: https://salsa.debian.org/debian-gis-team/python-geotiepoints/-/commit/ee86a694de0bf2a8bbd7df2c40137e13800ffed5 You're receiving this email because of your account on salsa.debian.org.
_______________________________________________ Pkg-grass-devel mailing list [email protected] https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-grass-devel
