cpython/Lib/email/test
R David Murray 7441a7aedd #14291: if a header has non-ascii unicode, default to CTE using utf-8
In Python2, if a unicode string was assigned as the value of a header,
email would automatically CTE encode it using the UTF8 charset.
This capability was lost in the Python3 translation, and this patch
restores it.

Patch by Ali Ikinci, assisted by R. David Murray.

I also added a fix for the mailbox test that was depending (with a comment
that it was a bad idea to so depend) on non-ASCII causing message_from_string
to raise an error.  It now uses support.patch to induce an error during
message serialization.
2012-03-14 02:59:51 -04:00
..
data Lib/email/test/data/msg_26.txt had its line endings wrong in the SVN repository. 2011-03-05 21:49:50 +01:00
__init__.py Copying the email package back, despite its failings. 2007-08-30 01:15:14 +00:00
test_email.py #14291: if a header has non-ascii unicode, default to CTE using utf-8 2012-03-14 02:59:51 -04:00
test_email_codecs.py #11554: reactivate test_email_codecs, and make it pass. 2011-03-15 12:20:02 -04:00
test_email_torture.py Merged revisions 78018,78035-78040,78042-78043,78046,78048-78052,78054,78059,78075-78080 via svnmerge from 2010-03-14 10:23:39 +00:00