summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Rostovtsev <tetromino@gentoo.org>2011-12-26 06:29:55 +0000
committerAlexandre Rostovtsev <tetromino@gentoo.org>2011-12-26 06:29:55 +0000
commit5c425616fe5e679ee351cf2dcbd170db5522e32d (patch)
tree46bed66686276bd7ba8767f5cd0d7e1fff5a0cda /dev-python/pygobject/files/pygobject-3.0.3-tests-python3.patch
parentVersion bump (diff)
downloadhistorical-5c425616fe5e679ee351cf2dcbd170db5522e32d.tar.gz
historical-5c425616fe5e679ee351cf2dcbd170db5522e32d.tar.bz2
historical-5c425616fe5e679ee351cf2dcbd170db5522e32d.zip
Version bump with assorted bugfixes. Fix example installation directory (bug #392449 comment 3, thanks to Arfrever). Also, restrict pypy for all versions of pygobject and improve use of python eclass in 3.0.3 (bug #321879 comment 8, thanks to Arfrever).
Package-Manager: portage-2.2.0_alpha83/cvs/Linux x86_64
Diffstat (limited to 'dev-python/pygobject/files/pygobject-3.0.3-tests-python3.patch')
-rw-r--r--dev-python/pygobject/files/pygobject-3.0.3-tests-python3.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/dev-python/pygobject/files/pygobject-3.0.3-tests-python3.patch b/dev-python/pygobject/files/pygobject-3.0.3-tests-python3.patch
new file mode 100644
index 000000000000..a8477fa5edcb
--- /dev/null
+++ b/dev-python/pygobject/files/pygobject-3.0.3-tests-python3.patch
@@ -0,0 +1,28 @@
+From 8d88283688797b8fc70a7cbccd42a71b8518098d Mon Sep 17 00:00:00 2001
+From: Alexandre Rostovtsev <tetromino@gentoo.org>
+Date: Mon, 26 Dec 2011 00:44:56 -0500
+Subject: [PATCH] Fix bytearray test compatibility with python3
+
+https://bugs.gentoo.org/show_bug.cgi?id=321879
+---
+ tests/test_gi.py | 4 ++--
+ 1 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/tests/test_gi.py b/tests/test_gi.py
+index 0a9b1b2..8726187 100644
+--- a/tests/test_gi.py
++++ b/tests/test_gi.py
+@@ -783,8 +783,8 @@ class TestArray(unittest.TestCase):
+ self.assertEquals([27, "Hello"], map(GLib.Variant.unpack, GIMarshallingTests.array_gvariant_none_in(v)))
+
+ def test_bytearray_gvariant(self):
+- v = GLib.Variant.new_bytestring("foo")
+- self.assertEquals(v.get_bytestring(), "foo")
++ v = GLib.Variant.new_bytestring(b"foo")
++ self.assertEquals(v.get_bytestring(), b"foo")
+
+ class TestGArray(unittest.TestCase):
+
+--
+1.7.8.1
+