mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Merged revisions 85142 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r85142 | r.david.murray | 2010-10-01 11:40:20 -0400 (Fri, 01 Oct 2010) | 5 lines #10004: in Q encoded word ignore '=xx' when xx is not valid hex. Bug report and fix by Thomas Guettler. ........
This commit is contained in:
parent
eccd4d910d
commit
f9c957f2c6
3 changed files with 10 additions and 1 deletions
|
@ -1655,6 +1655,12 @@ Re: =?mac-iceland?q?r=8Aksm=9Arg=8Cs?= baz foo bar =?mac-iceland?q?r=8Aksm?=
|
|||
dh = decode_header(s % q)
|
||||
self.assertEqual(dh, [(a, 'iso-8859-1')])
|
||||
|
||||
def test_rfc2047_Q_invalid_digits(self):
|
||||
# issue 10004.
|
||||
s = '=?iso-8659-1?Q?andr=e9=zz?='
|
||||
self.assertEqual(decode_header(s),
|
||||
[(b'andr\xe9=zz', 'iso-8659-1')])
|
||||
|
||||
|
||||
# Test the MIMEMessage class
|
||||
class TestMIMEMessage(TestEmailBase):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue