]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blobdiff - python3-cairo/patches/pycairo-1.10.0-test-python3.patch
python3-cairo: Rebuild against Python 3.4
[people/amarx/ipfire-3.x.git] / python3-cairo / patches / pycairo-1.10.0-test-python3.patch
diff --git a/python3-cairo/patches/pycairo-1.10.0-test-python3.patch b/python3-cairo/patches/pycairo-1.10.0-test-python3.patch
new file mode 100644 (file)
index 0000000..32e398f
--- /dev/null
@@ -0,0 +1,12 @@
+diff -up pycairo-1.10.0/test/examples_test.py~ pycairo-1.10.0/test/examples_test.py
+--- pycairo-1.10.0/test/examples_test.py~      2010-05-29 08:28:35.000000000 +0300
++++ pycairo-1.10.0/test/examples_test.py       2013-12-20 22:53:07.806217741 +0200
+@@ -14,7 +14,7 @@ def test_snippets():
+   examples/cairo_snippets/snippets/
+   '''
+   def doSnippets(name):
+-    retcode = subprocess.call('python %s -s' % name, shell=True)
++    retcode = subprocess.call('python3 %s -s' % name, shell=True)
+     assert retcode == 0, 'Error: retcode == {0}'.format(retcode)
+   os.chdir(os.path.join(os.path.dirname(__file__), '..', 'examples',