diff options
author | R David Murray <rdmurray@bitdance.com> | 2011-06-18 16:30:55 (GMT) |
---|---|---|
committer | R David Murray <rdmurray@bitdance.com> | 2011-06-18 16:30:55 (GMT) |
commit | 6bdb1769dcd1a95a7f6fa7d98d05e835be931466 (patch) | |
tree | d34efed0702eb2381bb2e0ca54b98a3a34a40c60 /Lib/email/test | |
parent | c88bce1580c61ee33bf72e55b817940dba46d99c (diff) | |
download | cpython-6bdb1769dcd1a95a7f6fa7d98d05e835be931466.zip cpython-6bdb1769dcd1a95a7f6fa7d98d05e835be931466.tar.gz cpython-6bdb1769dcd1a95a7f6fa7d98d05e835be931466.tar.bz2 |
#11584: make decode_header handle Header objects correctly
This updates b21fdfa0019c, which fixed this bug incorrectly.
Diffstat (limited to 'Lib/email/test')
-rw-r--r-- | Lib/email/test/test_email.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/email/test/test_email.py b/Lib/email/test/test_email.py index 281a65a..97a1e86 100644 --- a/Lib/email/test/test_email.py +++ b/Lib/email/test/test_email.py @@ -4176,8 +4176,8 @@ A very long line that must get split to something other than at the def test_escaped_8bit_header(self): x = b'Ynwp4dUEbay Auction Semiar- No Charge \x96 Earn Big' - x = x.decode('ascii', 'surrogateescape') - h = Header(x, charset=email.charset.UNKNOWN8BIT) + e = x.decode('ascii', 'surrogateescape') + h = Header(e, charset=email.charset.UNKNOWN8BIT) self.assertEqual(str(h), 'Ynwp4dUEbay Auction Semiar- No Charge \uFFFD Earn Big') self.assertEqual(email.header.decode_header(h), [(x, 'unknown-8bit')]) |