[Python-modules-commits] r15499 - in packages/python-geohash/trunk/debian (3 files)

davide125-guest at users.alioth.debian.org davide125-guest at users.alioth.debian.org
Mon Feb 7 10:08:43 UTC 2011


    Date: Monday, February 7, 2011 @ 10:08:37
  Author: davide125-guest
Revision: 15499

Make the tests execution during build actually work

Added:
  packages/python-geohash/trunk/debian/patches/
  packages/python-geohash/trunk/debian/patches/series
  packages/python-geohash/trunk/debian/patches/uncomment-tests-main.patch

Added: packages/python-geohash/trunk/debian/patches/series
===================================================================
--- packages/python-geohash/trunk/debian/patches/series	                        (rev 0)
+++ packages/python-geohash/trunk/debian/patches/series	2011-02-07 10:08:37 UTC (rev 15499)
@@ -0,0 +1 @@
+uncomment-tests-main.patch

Added: packages/python-geohash/trunk/debian/patches/uncomment-tests-main.patch
===================================================================
--- packages/python-geohash/trunk/debian/patches/uncomment-tests-main.patch	                        (rev 0)
+++ packages/python-geohash/trunk/debian/patches/uncomment-tests-main.patch	2011-02-07 10:08:37 UTC (rev 15499)
@@ -0,0 +1,28 @@
+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
+@@ -54,5 +54,5 @@
+ 		self.assertEqual(round(x['s'],3), 42.583)
+ 		self.assertEqual(round(x['n'],3), 42.627)
+ 
+-# if __name__=='__main__':
+-# 	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
+@@ -6,5 +6,5 @@
+ 		for code in ["000000000000","zzzzzzzzzzzz","bgr96qxvpd46",]:
+ 			self.assertEqual(code, geohash.encode(*geohash.decode(code)))
+ 
+-# if __name__=='__main__':
+-# 	unittest.main()
++if __name__=='__main__':
++	unittest.main()




More information about the Python-modules-commits mailing list