[python-shapely] 92/148: Fix for Debian bug #666655

Sebastiaan Couwenberg sebastic at moszumanska.debian.org
Thu Aug 20 17:42:07 UTC 2015


This is an automated email from the git hooks/post-receive script.

sebastic pushed a commit to branch master
in repository python-shapely.

commit 3d44721fcf4770bba5603231d300a6dd69ff23d8
Author: Pietro Battiston <me at pietrobattiston.it>
Date:   Mon Apr 9 11:50:38 2012 +0200

    Fix for Debian bug #666655
---
 .../patches/0004-Fix-for-Debian-bug-666655.patch   | 26 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 2 files changed, 27 insertions(+)

diff --git a/debian/patches/0004-Fix-for-Debian-bug-666655.patch b/debian/patches/0004-Fix-for-Debian-bug-666655.patch
new file mode 100644
index 0000000..b9f5fb2
--- /dev/null
+++ b/debian/patches/0004-Fix-for-Debian-bug-666655.patch
@@ -0,0 +1,26 @@
+From: Pietro Battiston <me at pietrobattiston.it>
+Date: Mon, 9 Apr 2012 11:49:47 +0200
+Subject: Fix for Debian bug #666655.
+
+The test for cascaded_union involves scattering random patches and
+verifying they form a MultiPolygon: depending on the random
+scattering, they can instead (rarely) form a Polygon, and in that
+case the test fails. This is a (hacky?) patch solving the problem.
+---
+ shapely/tests/cascaded_union.txt |    5 +++--
+ 1 files changed, 3 insertions(+), 2 deletions(-)
+
+diff --git a/shapely/tests/cascaded_union.txt b/shapely/tests/cascaded_union.txt
+index 7d54f31..2446349 100644
+--- a/shapely/tests/cascaded_union.txt
++++ b/shapely/tests/cascaded_union.txt
+@@ -19,6 +19,7 @@ Buffer the points, producing 100 polygon spots
+ Perform a cascaded union of the polygon spots, dissolving them into a 
+ collection of polygon patches
+ 
+-  >>> cascaded_union(spots) # doctest: +ELLIPSIS
+-  <shapely.geometry.multipolygon.MultiPolygon object at 0x...>
++  >>> u = cascaded_union(spots) # doctest: +ELLIPSIS
++  >>> u.__class__.__name__.endswith( 'Polygon' )
++  True
+ 
diff --git a/debian/patches/series b/debian/patches/series
index 0c06c1e..f72d9f8 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
 0001-disable-broken-locale-test.patch
 0002-rerun-cython.patch
 0003-Fix-for-Debian-bug-663210.patch
+0004-Fix-for-Debian-bug-666655.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/python-shapely.git



More information about the Pkg-grass-devel mailing list