[python-shapely] 33/148: Patch to disable broken test
Sebastiaan Couwenberg
sebastic at moszumanska.debian.org
Thu Aug 20 17:42:00 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 17db760096807998f05c5b1c5e0d9c8764a767e1
Author: Pietro Battiston <me at pietrobattiston.it>
Date: Tue Sep 14 12:08:00 2010 +0200
Patch to disable broken test
---
debian/patches/disable-broken-locale-test | 38 +++++++++++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 39 insertions(+)
diff --git a/debian/patches/disable-broken-locale-test b/debian/patches/disable-broken-locale-test
new file mode 100644
index 0000000..58f37b3
--- /dev/null
+++ b/debian/patches/disable-broken-locale-test
@@ -0,0 +1,38 @@
+Description: The following test assumes that the locale "pt_BR.UTF-8" is
+installed, and fails otherwise. Since there is no "non-trivial" locale which we
+can assume is installed, the only way to fix this seems to disable it.
+Forwarded, but upstream seems willing to not drop the test.
+Author: Pietro Battiston <toobaz at email.it>
+Forwarded: yes
+
+--- python-shapely.orig/shapely/tests/wkt_locale.txt 2010-09-14 11:43:00.000000000 +0200
++++ /dev/null 1970-01-01 00:00:00.000000000 +0000
+@@ -1,28 +0,0 @@
+-Test locale independence of WKT
+-===============================
+-
+-Set locale to one that uses a comma as decimal seperator`
+-
+- >>> import locale, sys
+- >>> if sys.platform == 'win32':
+- ... _ = locale.setlocale(locale.LC_ALL, 'portuguese_brazil')
+- ... else:
+- ... _ = locale.setlocale(locale.LC_ALL, 'pt_BR.UTF-8')
+-
+-Test reading and writing`
+-
+- >>> from shapely.wkt import loads
+- >>> p = loads('POINT (0.0 0.0)')
+- >>> p.x == 0.0
+- True
+- >>> p.y == 0.0
+- True
+- >>> p.wkt
+- 'POINT (0.0...)'
+- >>> from shapely.wkt import dumps
+- >>> dumps(p)
+- 'POINT (0.0...)'
+-
+-Reset locale
+-
+- >>> _ = locale.setlocale(locale.LC_ALL, '')
diff --git a/debian/patches/series b/debian/patches/series
index 6d3430f..73be9e9 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
+disable-broken-locale-test
do-not-install-examples-as-scripts
--
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