GNOME Bugzilla – Bug 666852
test_bytearray_gvariant fails under python3
Last modified: 2012-01-24 15:26:42 UTC
Attempting to run test_bytearray_gvariant under python3 results in a failure: ====================================================================== ERROR: test_bytearray_gvariant (test_gi.TestArray) ---------------------------------------------------------------------- Traceback (most recent call last):
+ Trace 229337
v = GLib.Variant.new_bytestring("foo")
return info.invoke(cls, *args, **kwargs)
This is because python3 does not allow mixing strings with byte arrays; under python3, GLib.Variant.new_bytestring() expects bytes, not a string.
Created attachment 204217 [details] [review] proposed patch
Comment on attachment 204217 [details] [review] proposed patch Pushed, thanks!