[Python-modules-commits] [djangorestframework-gis] 04/06: merge patched into master
Michael Fladischer
fladi at moszumanska.debian.org
Tue Oct 27 16:00:11 UTC 2015
This is an automated email from the git hooks/post-receive script.
fladi pushed a commit to branch master
in repository djangorestframework-gis.
commit f9b3a2aafbf11a527f1cdefb81a1580d547c5a3b
Merge: 6068c11 2834b9b
Author: Michael Fladischer <FladischerMichael at fladi.at>
Date: Tue Oct 27 09:53:11 2015 +0100
merge patched into master
debian/.git-dpm | 4 ++--
.../0003-Assert-that-the-coordinates-are-approximately-equal-.patch | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --cc debian/.git-dpm
index 462c48f,0000000..491cc18
mode 100644,000000..100644
--- a/debian/.git-dpm
+++ b/debian/.git-dpm
@@@ -1,11 -1,0 +1,11 @@@
+# see git-dpm(1) from git-dpm package
- 54b385ce3b58632ac82c40b3419a07b4a6dce1ac
- 54b385ce3b58632ac82c40b3419a07b4a6dce1ac
++2834b9b36468c8db67efca8e707a3104ceab4692
++2834b9b36468c8db67efca8e707a3104ceab4692
+2e7c34d49cd13f24cc87100cfbd73ffbbbbdc7bb
+2e7c34d49cd13f24cc87100cfbd73ffbbbbdc7bb
+djangorestframework-gis_0.9.5.orig.tar.gz
+9135e37d4b58db41ebc79c5814bfdb86dd59937e
+25735
+debianTag="debian/%e%v"
+patchedTag="patched/%e%v"
+upstreamTag="upstream/%e%u"
diff --cc debian/patches/0003-Assert-that-the-coordinates-are-approximately-equal-.patch
index ce8907d,0000000..461d7d0
mode 100644,000000..100644
--- a/debian/patches/0003-Assert-that-the-coordinates-are-approximately-equal-.patch
+++ b/debian/patches/0003-Assert-that-the-coordinates-are-approximately-equal-.patch
@@@ -1,30 -1,0 +1,30 @@@
- From 54b385ce3b58632ac82c40b3419a07b4a6dce1ac Mon Sep 17 00:00:00 2001
++From 2834b9b36468c8db67efca8e707a3104ceab4692 Mon Sep 17 00:00:00 2001
+From: Michael Fladischer <FladischerMichael at fladi.at>
+Date: Tue, 27 Oct 2015 09:39:24 +0100
- Subject: Assert that the coordinates are approximately equal instead af
++Subject: Assert that the coordinates are approximately equal instead of
+ absolutely equal.
+
+This is necessary because spatialite, which is used by the unittests in the
+Debian package, yields a lower precision when it comes to floating point
+coordinates compared to PostgreSQL.
+---
+ tests/django_restframework_gis_tests/tests.py | 6 ++----
+ 1 file changed, 2 insertions(+), 4 deletions(-)
+
+diff --git a/tests/django_restframework_gis_tests/tests.py b/tests/django_restframework_gis_tests/tests.py
+index c7e4470..6ef8201 100644
+--- a/tests/django_restframework_gis_tests/tests.py
++++ b/tests/django_restframework_gis_tests/tests.py
+@@ -132,10 +132,8 @@ class TestRestFrameworkGis(TestCase):
+ expected_coords = (6.381495826183805, 53.384066927384985)
+ self.assertEqual(response.status_code, 201)
+ self.assertEqual(Location.objects.count(), 1)
+- self.assertEquals(
+- Location.objects.get(name='EWKT input test').geometry.coords,
+- expected_coords
+- )
++ for l, e in zip(Location.objects.get(name='EWKT input test').geometry.coords, expected_coords):
++ self.assertAlmostEqual(l, e, places=5)
+
+ def test_post_location_list_WKT_as_json(self):
+ self.assertEqual(Location.objects.count(), 0)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/djangorestframework-gis.git
More information about the Python-modules-commits
mailing list