File: test-3.2.patch

package info (click to toggle)
python3-dateutil 2.0%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 980 kB
  • sloc: python: 6,430; makefile: 56
file content (19 lines) | stat: -rw-r--r-- 504 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Date: Sat Mar 24 12:24:03 GMT 2012
Author: Thomas Kluyver <thomas@kluyver.me.uk>
Subject: Fix tests for Python 3.2

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