[pyorbital] 01/02: Relax test condition in test_astronomy
Antonio Valentino
a_valentino-guest at moszumanska.debian.org
Tue Feb 16 20:06:41 UTC 2016
This is an automated email from the git hooks/post-receive script.
a_valentino-guest pushed a commit to branch master
in repository pyorbital.
commit 60516bec6656c4c0f4b1231762b80cce44fd7e2b
Author: Antonio Valentino <antonio.valentino at tiscali.it>
Date: Tue Feb 16 21:03:29 2016 +0100
Relax test condition in test_astronomy
---
debian/changelog | 2 ++
.../0002-relax-astronomy-test-condition.patch | 24 ++++++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 27 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 7ec9424..53eb78e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,6 +6,8 @@ pyorbital (1.0.0-1) UNRELEASED; urgency=medium
* Bump standard version to 3.9.7 (no change)
* debian/control
- fix VCS URLs
+ * debian/patches
+ - new patch to relax test condition in test_astronomy,py
-- Antonio Valentino <antonio.valentino at tiscali.it> Sun, 22 Mar 2015 17:24:12 +0000
diff --git a/debian/patches/0002-relax-astronomy-test-condition.patch b/debian/patches/0002-relax-astronomy-test-condition.patch
new file mode 100644
index 0000000..26cea7b
--- /dev/null
+++ b/debian/patches/0002-relax-astronomy-test-condition.patch
@@ -0,0 +1,24 @@
+From: Antonio Valentino <antonio.valentino at tiscali.it>
+Date: Tue, 16 Feb 2016 20:58:08 +0100
+Subject: relax astronomy test condition
+
+---
+ pyorbital/tests/test_astronomy.py | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/pyorbital/tests/test_astronomy.py b/pyorbital/tests/test_astronomy.py
+index ae39d1c..6666898 100644
+--- a/pyorbital/tests/test_astronomy.py
++++ b/pyorbital/tests/test_astronomy.py
+@@ -50,9 +50,9 @@ class TestAstronomy(unittest.TestCase):
+ time_slot = datetime(2011, 9, 23, 12, 0)
+
+ sun_theta = astr.sun_zenith_angle(time_slot, lon, lat)
+- self.assertEqual(sun_theta, 60.371433482557833)
++ self.assertAlmostEqual(sun_theta, 60.371433482557833, places=8)
+ sun_theta = astr.sun_zenith_angle(time_slot, 0., 0.)
+- self.assertEqual(sun_theta, 1.8751916863323426)
++ self.assertAlmostEqual(sun_theta, 1.8751916863323426, places=8)
+
+ def suite():
+ """The suite for test_astronomy
diff --git a/debian/patches/series b/debian/patches/series
index d07cec9..26917b1 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
0001-install-test-sub-package.patch
+0002-relax-astronomy-test-condition.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/pyorbital.git
More information about the Pkg-grass-devel
mailing list