[Twisted-Python] accepttests mail test fails with python 1.5.2 due to binascii.hexlify
Tommi Virtanen
tv at debian.org
Sat Sep 22 07:08:54 MDT 2001
[tv at ki ~/work/twistedmatrix/Twisted]$ WEBBROWSER=links USER=tv IRCCLIENT=run-xchat PYTHONPATH=. ./bin/accepttests
/------
|####
|#### Starting test.
|####
\------
/------
|####
|#### Starting mail test
|####
\------
Running System Command: './bin/mktap mail --domain foo.bar=dump --user postmaster=postmaster'
Saving mail application to mail.tap...
Saved.
Running System Command: './bin/mktap --append mail.tap mail --relay 127.0.0.1,8025=dump2 --smtp 8026 --pop 8111'
Saving mail application to mail.tap...
Saved.
Running Command: './bin/twistd -f mail.tap'
Traceback (innermost last):
File "./bin/accepttests", line 205, in ?
runAllTests()
File "./bin/accepttests", line 189, in runAllTests
runMailTest()
File "./bin/accepttests", line 173, in runMailTest
p.apop('postmaster at foo.bar', 'postmaster')
File "/usr/lib/python1.5/poplib.py", line 281, in apop
return self._shortcmd('APOP %s %s' % (user, digest))
File "/usr/lib/python1.5/poplib.py", line 146, in _shortcmd
return self._getresp()
File "/usr/lib/python1.5/poplib.py", line 125, in _getresp
raise error_proto(resp)
poplib.error_proto: -ERR bad protocol or server: AttributeError: hexlify
zsh: 28133 exit 1 WEBBROWSER=links USER=tv IRCCLIENT=run-xchat PYTHONPATH=. ./bin/accepttests
[tv at ki ~/work/twistedmatrix/Twisted]$
In twisted.mail.maildir.MaildirMailbox.authenticateUserAPOP,
binascii.hexlify is used. Hexlify is in python2, but not in
earlier ones..
--
tv@{{hq.yok.utu,havoc,gaeshido}.fi,{debian,wanderer}.org,stonesoft.com}
double a,b=4,c;main(){for(;++a<2e6;c-=(b=-b)/a++);printf("%f\n",c);}
More information about the Twisted-Python
mailing list