[issue11780] email.encoders are broken
Steffen Daode Nurpmeso
report at bugs.python.org
Wed Apr 6 13:04:58 CEST 2011
New submission from Steffen Daode Nurpmeso <sdaoden at googlemail.com>:
This is what one gets if using a BytesParser() generated message:
encoders.encode_7or8bit(msg)
AttributeError: 'list' object has no attribute 'decode'
encoders.encode_base64(msg)
TypeError: expected bytes, not list
encoders.encode_quopri(msg)
TypeError: 'list' does not support the buffer interface
I'll attach a diff against 3.3 test_email.py which adds stupid
tests (there is really no assertNoRaises()).
Maybe they should also be extended so that it is actually tested
wether the generated content is also correct.
----------
components: Library (Lib)
files: test_email.1.diff
keywords: patch
messages: 133120
nosy: sdaoden
priority: normal
severity: normal
status: open
title: email.encoders are broken
versions: Python 3.2, Python 3.3
Added file: http://bugs.python.org/file21548/test_email.1.diff
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11780>
_______________________________________
More information about the Python-bugs-list
mailing list