Bug 102807

Summary: telepathy-idle fails invalid-utf8 test
Product: Telepathy Reporter: Heiko Becker <heirecka>
Component: idleAssignee: Telepathy bugs list <telepathy-bugs>
Status: RESOLVED MOVED QA Contact: Telepathy bugs list <telepathy-bugs>
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: Patch which makes the test work

Description Heiko Becker 2017-09-16 19:12:22 UTC
Created attachment 134279 [details] [review]
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.
Comment 1 GitLab Migration User 2019-12-03 20:10:40 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/telepathy/telepathy-idle/issues/53.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.