Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 295135

Summary: dev-python/twisted-words-9.0.0 fails tests
Product: Gentoo Linux Reporter: Arfrever Frehtes Taifersar Arahesis (RETIRED) <arfrever>
Component: Current packagesAssignee: Python Gentoo Team <python>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: twisted-words-9.0.0:20091130-014034.log

Description Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-11-30 01:39:37 UTC
dev-python/twisted-words-9.0.0 fails tests.

[FAIL]: twisted.words.test.test_jabberclient.IQAuthInitializerTest.testDigest                                                                               

Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/twisted-words-9.0.0/temp/usr/lib64/python2.6/site-packages/twisted/words/test/test_jabberclient.py", line 116, in testDigest                                                                                                                                                          
    self.assertEquals('set', iq['type'])                                                                                                                     
twisted.trial.unittest.FailTest: not equal:                                                                                                                  
a = 'set'                                                                                                                                                    
b = 'result'                                                                                                                                                 

===============================================================================
[ERROR]: twisted.words.test.test_jabbercomponent.ComponentAuthTest.testAuth    

Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/twisted-words-9.0.0/temp/usr/lib64/python2.6/site-packages/twisted/words/test/test_jabbercomponent.py", line 84, in testAuth                                                                                                                                                          
    self.assertEquals(outlist[1], "<handshake>%s</handshake>" % (hv))                                                                                        
exceptions.IndexError: list index out of range                                                                                                               
===============================================================================                                                                              
[ERROR]: twisted.words.test.test_jabberxmlstream.ConnectAuthenticatorTest.testFailure                                                                        

Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/twisted-words-9.0.0/temp/usr/lib64/python2.6/site-packages/twisted/words/protocols/jabber/client.py", line 119, in _cbAuthQuery                                                                                                                                                       
    digest = xmlstream.hashPassword(self.xmlstream.sid, password)                                                                                            
  File "/var/tmp/portage/dev-python/twisted-words-9.0.0/temp/usr/lib64/python2.6/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
Comment 1 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-11-30 01:40:44 UTC
Created attachment 211551 [details]
twisted-words-9.0.0:20091130-014034.log
Comment 2 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-01-12 11:41:07 UTC
All 3 previously failing tests now pass.