[Bug 102807] New: telepathy-idle fails invalid-utf8 test
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Sat Sep 16 19:12:22 UTC 2017
https://bugs.freedesktop.org/show_bug.cgi?id=102807
Bug ID: 102807
Summary: telepathy-idle fails invalid-utf8 test
Product: Telepathy
Version: unspecified
Hardware: Other
OS: All
Status: NEW
Severity: normal
Priority: medium
Component: idle
Assignee: telepathy-bugs at lists.freedesktop.org
Reporter: heirecka at exherbo.org
QA Contact: telepathy-bugs at lists.freedesktop.org
Created attachment 134279
--> https://bugs.freedesktop.org/attachment.cgi?id=134279&action=edit
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.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
More information about the telepathy-bugs
mailing list