diff options
author | R. David Murray <rdmurray@bitdance.com> | 2011-01-05 01:39:32 (GMT) |
---|---|---|
committer | R. David Murray <rdmurray@bitdance.com> | 2011-01-05 01:39:32 (GMT) |
commit | 477efb394412314d47fdfb3f7c287edb028809c0 (patch) | |
tree | 570907b128aae2ce7417d08061dbe0e5f5a67cf9 /Lib/email/test/test_email.py | |
parent | ca1e7ec3444c372335c96f83d1550b16b0783557 (diff) | |
download | cpython-477efb394412314d47fdfb3f7c287edb028809c0.zip cpython-477efb394412314d47fdfb3f7c287edb028809c0.tar.gz cpython-477efb394412314d47fdfb3f7c287edb028809c0.tar.bz2 |
#10790: make append work when output codec is different from input codec
There's still a bug here (the encode call shouldn't use the 'errors'
paramter), but I'll fix that later.
Diffstat (limited to 'Lib/email/test/test_email.py')
-rw-r--r-- | Lib/email/test/test_email.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/email/test/test_email.py b/Lib/email/test/test_email.py index 73ac347..e7fcee3 100644 --- a/Lib/email/test/test_email.py +++ b/Lib/email/test/test_email.py @@ -3620,6 +3620,10 @@ A very long line that must get split to something other than at the s = 'Subject: =?EUC-KR?B?CSixpLDtKSC/7Liuvsax4iC6uLmwMcijIKHaILzSwd/H0SC8+LCjwLsgv7W/+Mj3I ?=' raises(errors.HeaderParseError, decode_header, s) + def test_shift_jis_charset(self): + h = Header('文', charset='shift_jis') + self.assertEqual(h.encode(), '=?iso-2022-jp?b?GyRCSjgbKEI=?=') + # Test RFC 2231 header parameters (en/de)coding |