[pygobject] Fix bytearray test compatibility with python3



commit 557a61c12c01137a0d7c679c4b053973df09d445
Author: Alexandre Rostovtsev <tetromino gentoo org>
Date:   Mon Dec 26 00:44:56 2011 -0500

    Fix bytearray test compatibility with python3
    
    https://bugs.gentoo.org/show_bug.cgi?id=321879
    
    https://bugzilla.gnome.org/show_bug.cgi?id=666852

 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 7d2fbed..68decf6 100644
--- a/tests/test_gi.py
+++ b/tests/test_gi.py
@@ -786,8 +786,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):
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]