twisted.words.test.test_xmlstream.XmlStreamTest.test_receiveBadXML fails with Python trunk@HEAD

[email protected]
Newsgroups gmane.comp.python.twisted.bugs
Message-ID <[email protected]>
New submission from ivank <[email protected]>:

Python 2.7r72791:

{{{
[ERROR]: twisted.words.test.test_xmlstream.XmlStreamTest.test_receiveBadXML

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/twisted/words/protocols/jabber/client.py", line 119, in _cbAuthQuery
    digest = xmlstream.hashPassword(self.xmlstream.sid, password)
  File "/usr/local/lib/python2.7/site-packages/twisted/words/protocols/jabber/xmlstream.py", line 46, in hashPassword
    return sha1("%s%s" % (sid, password)).hexdigest()
exceptions.TypeError: Unicode-objects must be encoded before hashing
}}}

----------
Type     : defect
Component: words
Keywords : 
Priority : normal
Nosy     : 
----------
http://twistedmatrix.com/trac/ticket/3847
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.