[Git][debian-gis-team/pytroll-schedule][master] Fix test intersection

Antonio Valentino gitlab at salsa.debian.org
Fri Jan 18 22:57:04 GMT 2019


Antonio Valentino pushed to branch master at Debian GIS Project / pytroll-schedule


Commits:
9672e5b7 by Antonio Valentino at 2019-01-18T22:56:49Z
Fix test intersection

- - - - -


3 changed files:

- debian/changelog
- + debian/patches/0003-Fix-test-intersection.patch
- debian/patches/series


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,10 @@
+pytroll-schedule (0.5.1-1ubuntu1) UNRELEASED; urgency=medium
+
+  * debian/patches:
+    - new 0003-Fix-test-intersection.patch
+
+ -- Antonio Valentino <antonio.valentino at tiscali.it>  Fri, 18 Jan 2019 23:54:37 +0100
+
 pytroll-schedule (0.5.1-1) unstable; urgency=medium
 
   * New upstream release.


=====================================
debian/patches/0003-Fix-test-intersection.patch
=====================================
@@ -0,0 +1,21 @@
+From: Antonio Valentino <antonio.valentino at tiscali.it>
+Date: Fri, 18 Jan 2019 23:51:58 +0100
+Subject: Fix test intersection
+
+---
+ trollsched/tests/test_spherical.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/trollsched/tests/test_spherical.py b/trollsched/tests/test_spherical.py
+index 997d7ef..aa57660 100644
+--- a/trollsched/tests/test_spherical.py
++++ b/trollsched/tests/test_spherical.py
+@@ -185,7 +185,7 @@ class TestArc(unittest.TestCase):
+         lon, lat = arc1.intersection(arc2)
+ 
+         self.assertTrue(np.allclose(np.rad2deg(lon), 5))
+-        self.assertEquals(np.rad2deg(lat), 5.0575148968282093)
++        self.assertTrue(np.allclose(np.rad2deg(lat), 5.0575148968282093))
+ 
+         arc1 = Arc(SCoordinate(0, 0),
+                    SCoordinate(np.deg2rad(10), np.deg2rad(10)))


=====================================
debian/patches/series
=====================================
@@ -1,2 +1,3 @@
 0001-Fix-tests.patch
 0002-Do-not-install-broken-script.patch
+0003-Fix-test-intersection.patch



View it on GitLab: https://salsa.debian.org/debian-gis-team/pytroll-schedule/commit/9672e5b787b2543014c3f094d770867a877f36ed

-- 
View it on GitLab: https://salsa.debian.org/debian-gis-team/pytroll-schedule/commit/9672e5b787b2543014c3f094d770867a877f36ed
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/20190118/88350e3a/attachment-0001.html>


More information about the Pkg-grass-devel mailing list