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

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

commit db8ae7b5ba0c7c8207e31db593ea00e23e2a122c
Author: Pietro Battiston <m...@pietrobattiston.it>
Date:   Tue Sep 14 18:33:11 2010 +0200

    Run tests, except wkt_locale.txt which is broken.
---
 debian/control               |  2 +-
 debian/rules                 |  5 +++++
 shapely/tests/wkt_locale.txt | 28 ----------------------------
 3 files changed, 6 insertions(+), 29 deletions(-)

diff --git a/debian/control b/debian/control
index 5f9b8f3..dc7bf72 100644
--- a/debian/control
+++ b/debian/control
@@ -2,7 +2,7 @@ Source: python-shapely
 Section: python
 Priority: optional
 Maintainer: Pietro Battiston <too...@email.it>
-Build-Depends: debhelper (>= 7)
+Build-Depends: debhelper (>= 7.0.50)
 Build-Depends-Indep: python-setuptools (>= 0.6), python-support (>= 0.6)
 Standards-Version: 3.8.4
 XS-Python-Version: >= 2.5
diff --git a/debian/rules b/debian/rules
index 706b324..c3e5c74 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,3 +9,8 @@ export DH_OPTIONS
 
 %:
        dh  $@
+
+override_dh_auto_test:
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
+       python setup.py test
+endif
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

_______________________________________________
Pkg-grass-devel mailing list
Pkg-grass-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-grass-devel

Reply via email to