[Python-modules-commits] r20920 - in packages/python3-dateutil/trunk/debian/patches (2 files)
takluyver-guest at users.alioth.debian.org
takluyver-guest at users.alioth.debian.org
Sat Mar 24 12:24:56 UTC 2012
Date: Saturday, March 24, 2012 @ 12:24:54
Author: takluyver-guest
Revision: 20920
Patch to fix tests for Python 3.2
Added:
packages/python3-dateutil/trunk/debian/patches/test-3.2.patch
Modified:
packages/python3-dateutil/trunk/debian/patches/series
Modified: packages/python3-dateutil/trunk/debian/patches/series
===================================================================
--- packages/python3-dateutil/trunk/debian/patches/series 2012-03-24 12:17:39 UTC (rev 20919)
+++ packages/python3-dateutil/trunk/debian/patches/series 2012-03-24 12:24:54 UTC (rev 20920)
@@ -1,2 +1,3 @@
Use-C-locale-when-calling-date.patch
update-readme.patch
+test-3.2.patch
Added: packages/python3-dateutil/trunk/debian/patches/test-3.2.patch
===================================================================
--- packages/python3-dateutil/trunk/debian/patches/test-3.2.patch (rev 0)
+++ packages/python3-dateutil/trunk/debian/patches/test-3.2.patch 2012-03-24 12:24:54 UTC (rev 20920)
@@ -0,0 +1,19 @@
+Date: Sat Mar 24 12:24:03 GMT 2012
+Author: Thomas Kluyver <thomas at kluyver.me.uk>
+Subject: Fix tests for Python 3.2
+
+Will forward upstream
+--- a/test.py
++++ b/test.py
+@@ -11,7 +11,10 @@
+ if os.path.exists("build"):
+ from distutils.util import get_platform
+ import sys
+- s = "build/lib.%s-%.3s" % (get_platform(), sys.version)
++ if sys.version_info >= (3, 2):
++ s = "build/lib"
++ else:
++ s = "build/lib.%s-%.3s" % (get_platform(), sys.version)
+ s = os.path.join(os.getcwd(), s)
+ sys.path.insert(0, s)
+
More information about the Python-modules-commits
mailing list