mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Port relevant patches for SF 1409455 to the trunk for email 3.0/Python 2.5.
Will port to Python 2.4.
This commit is contained in:
parent
a871ef2b3e
commit
e58df82919
5 changed files with 20 additions and 8 deletions
|
|
@ -2221,7 +2221,8 @@ class TestMiscellaneous(TestEmailBase):
|
|||
charset = Charset(charsets[0])
|
||||
eq(charset.get_body_encoding(), 'base64')
|
||||
msg.set_payload('hello world', charset=charset)
|
||||
eq(msg.get_payload(), 'hello world')
|
||||
eq(msg.get_payload(), 'aGVsbG8gd29ybGQ=\n')
|
||||
eq(msg.get_payload(decode=True), 'hello world')
|
||||
eq(msg['content-transfer-encoding'], 'base64')
|
||||
# Try another one
|
||||
msg = Message()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue