[Python-modules-commits] r21239 - in packages/py3cairo/trunk/debian/patches (2 files)
vbkaisetsu-guest at users.alioth.debian.org
vbkaisetsu-guest at users.alioth.debian.org
Sun Apr 15 23:45:42 UTC 2012
Date: Sunday, April 15, 2012 @ 23:45:41
Author: vbkaisetsu-guest
Revision: 21239
add patches for pytest
Added:
packages/py3cairo/trunk/debian/patches/10_test-target-py3.patch
packages/py3cairo/trunk/debian/patches/series
Added: packages/py3cairo/trunk/debian/patches/10_test-target-py3.patch
===================================================================
--- packages/py3cairo/trunk/debian/patches/10_test-target-py3.patch (rev 0)
+++ packages/py3cairo/trunk/debian/patches/10_test-target-py3.patch 2012-04-15 23:45:41 UTC (rev 21239)
@@ -0,0 +1,18 @@
+Description: Use all versions for py.test
+ This patch changes py.test script to use all versions of Python 3 command
+ instead of python.
+Author: Koichi Akabe <vbkaisetsu at gmail.com>
+Last-Update: <2012-04-12>
+
+--- py3cairo-1.10.0+dfsg.orig/test/examples_test.py
++++ py3cairo-1.10.0+dfsg/test/examples_test.py
+@@ -14,7 +14,8 @@ def test_snippets():
+ examples/cairo_snippets/snippets/
+ '''
+ def doSnippets(name):
+- retcode = subprocess.call('python %s -s' % name, shell=True)
++ import sys
++ retcode = subprocess.call('PYTHONPATH=../../test python%d.%d %s -s' % (sys.version_info[0], sys.version_info[1], name), shell=True)
+ assert retcode == 0, 'Error: retcode == {0}'.format(retcode)
+
+ os.chdir(os.path.join(os.path.dirname(__file__), '..', 'examples',
Added: packages/py3cairo/trunk/debian/patches/series
===================================================================
--- packages/py3cairo/trunk/debian/patches/series (rev 0)
+++ packages/py3cairo/trunk/debian/patches/series 2012-04-15 23:45:41 UTC (rev 21239)
@@ -0,0 +1 @@
+10_test-target-py3.patch
More information about the Python-modules-commits
mailing list