[python-shapely] 25/148: Removed non-working locale

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 f04f99f9171d0a04fd618fb6a74464c6b7f23b19
Author: Pietro Battiston <me at pietrobattiston.it>
Date:   Sat Aug 14 22:46:01 2010 +0200

    Removed non-working locale
---
 shapely/tests/wkt_locale.txt | 28 ----------------------------
 1 file changed, 28 deletions(-)

diff --git a/shapely/tests/wkt_locale.txt b/shapely/tests/wkt_locale.txt
deleted file mode 100644
index ebbc024..0000000
--- a/shapely/tests/wkt_locale.txt
+++ /dev/null
@@ -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, '')

-- 
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