mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-04-30 04:47:28 -07:00
Add missing die run epatch with multiple patches at once Package-Manager: portage-2.2.23 Signed-off-by: Justin Lecher <jlec@gentoo.org>
19 lines
772 B
Diff
19 lines
772 B
Diff
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@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',
|