New submission from Steffen Daode Nurpmeso <sdao...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue11780>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to