[Python-modules-commits] r15520 - in packages/python-geohash/trunk/debian/patches (1 file)
davide125-guest at users.alioth.debian.org
davide125-guest at users.alioth.debian.org
Mon Feb 7 14:01:12 UTC 2011
Date: Monday, February 7, 2011 @ 14:01:05
Author: davide125-guest
Revision: 15520
Refresh uncomment-tests-main.patch using better quilt settings
Modified:
packages/python-geohash/trunk/debian/patches/uncomment-tests-main.patch
Modified: packages/python-geohash/trunk/debian/patches/uncomment-tests-main.patch
===================================================================
--- packages/python-geohash/trunk/debian/patches/uncomment-tests-main.patch 2011-02-07 13:59:59 UTC (rev 15519)
+++ packages/python-geohash/trunk/debian/patches/uncomment-tests-main.patch 2011-02-07 14:01:05 UTC (rev 15520)
@@ -1,11 +1,10 @@
Description: Uncomment main in test/ Python scripts
This makes it possible to run the tests during package build.
Author: Davide Cavalca <davide at geexbox.org>
-Last-Update: 20110207
-Index: python-geohash-0.7.obsolete.0.0300200144565714/test/test_decode.py
-===================================================================
---- python-geohash-0.7.obsolete.0.0300200144565714.orig/test/test_decode.py 2011-02-07 11:00:17.868001870 +0100
-+++ python-geohash-0.7.obsolete.0.0300200144565714/test/test_decode.py 2011-02-07 11:00:31.247446028 +0100
+Last-Update: 2011-02-07
+
+--- a/test/test_decode.py
++++ b/test/test_decode.py
@@ -54,5 +54,5 @@
self.assertEqual(round(x['s'],3), 42.583)
self.assertEqual(round(x['n'],3), 42.627)
@@ -14,10 +13,8 @@
-# unittest.main()
+if __name__=='__main__':
+ unittest.main()
-Index: python-geohash-0.7.obsolete.0.0300200144565714/test/test_encode.py
-===================================================================
---- python-geohash-0.7.obsolete.0.0300200144565714.orig/test/test_encode.py 2011-02-07 11:00:21.163934190 +0100
-+++ python-geohash-0.7.obsolete.0.0300200144565714/test/test_encode.py 2011-02-07 11:00:37.091690544 +0100
+--- a/test/test_encode.py
++++ b/test/test_encode.py
@@ -6,5 +6,5 @@
for code in ["000000000000","zzzzzzzzzzzz","bgr96qxvpd46",]:
self.assertEqual(code, geohash.encode(*geohash.decode(code)))
More information about the Python-modules-commits
mailing list