Bug 102807 - telepathy-idle fails invalid-utf8 test
Summary: telepathy-idle fails invalid-utf8 test
Status: RESOLVED MOVED
Alias: None
Product: Telepathy
Classification: Unclassified
Component: idle (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Telepathy bugs list
QA Contact: Telepathy bugs list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-09-16 19:12 UTC by Heiko Becker
Modified: 2019-12-03 20:10 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Patch which makes the test work (1.09 KB, patch)
2017-09-16 19:12 UTC, Heiko Becker
Details | Splinter Review

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.