telepathy-idle fails invalid-utf8 test
Submitted by Heiko Becker
Assigned to Telepathy bugs list
Link to original bug (#102807)
Description
Created attachment 134279 Patch which makes the test work
The invalid-utf8 test fails with the following output:
Traceback (most recent call last): File "/var/tmp/paludis/build/net-im-telepathy-idle-0.2.0-r1/work/telepathy-idle-0.2.0/tests/twisted/idletest.py", line 246, in exec _test_deferred f(queue, bus, conn, server) File "/var/tmp/paludis/build/net-im-telepathy-idle-0.2.0-r1/work/telepathy-idle-0.2.0/tests/twisted/messages/invalid-utf8.py", line 16, in test test_with_message(q, stream, ["I'm no ", " Buddhist"]) File "/var/tmp/paludis/build/net-im-telepathy-idle-0.2.0-r1/work/telepathy-idle-0.2.0/tests/twisted/messages/invalid-utf8.py", line 37, in test_with_message prefix='remoteuser') File "/usr/x86_64-pc-linux-gnu/lib/python2.7/site-packages/twisted/words/protocols/irc.py", line 293, in sendMessage line = ' '.join([command] + list(parameter_list)) UnicodeDecodeError: 'ascii' codec can't decode byte 0xed in position 8: ordinal not in range(128) FAIL: messages/invalid-utf8.py (1)
telepathy-idle-0.2.0 python-2.7.13 Twisted-17.5.0
The attached patch fixes it for me, but I'm not familiar with python and I have no idea if I maybe defeat the purpose of the test.
Patch 134279, "Patch which makes the test work":
0001-Fix-invalid-utf8-test.patch