On Nov 30, 2009, at 12:24 PM, Ian Eiloart wrote:
Error in test test_SMTP32_failure (mailman.tests.test_bounces.BounceTest)Traceback (most recent call last):File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/ lib/python2.6/unittest.py", line 279, in runtestMethod()File "/Users/iane/Downloads •/mailman-3.0.0a4/src/mailman/tests/ test_bounces.py", line 193, in test_SMTP32_failurewith open(os.path.join(MSGDIR, 'postfix_01.txt')) as fp:File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/ lib/python2.6/posixpath.py", line 70, in joinpath += '/' + bUnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 22: ordinal not in range(128)Error in test test_bounce (mailman.tests.test_bounces.BounceTest) Traceback (most recent call last):File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/ lib/python2.6/unittest.py", line 279, in runtestMethod()File "/Users/iane/Downloads •/mailman-3.0.0a4/src/mailman/tests/ test_bounces.py", line 175, in test_bouncepath = os.path.join(MSGDIR, filename)File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/ lib/python2.6/posixpath.py", line 70, in joinpath += '/' + bUnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 22: ordinal not in range(128)
I think Mark correctly diagnosed the problem. Keep in mind that these are somewhat broken tests anyway because they should be using pkg_resource to get at those files instead of os.path.join() and open(). I don't know if that'll solve the problem though.
I'm not exactly sure how to fix this yet, but I'll try to see if I can reproduce it locally.
-Barry
PGP.sig
Description: This is a digitally signed message part
_______________________________________________ Mailman-Developers mailing list [email protected] http://mail.python.org/mailman/listinfo/mailman-developers Mailman FAQ: http://wiki.list.org/x/AgA3 Searchable Archives: http://www.mail-archive.com/mailman-developers%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-developers/archive%40jab.org Security Policy: http://wiki.list.org/x/QIA9
