Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion Lib/test/test_email/test_contentmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,14 @@ def test_set_text_charset_cp949(self):

x9Gxub7uCoFBCg==
"""))
self.assertEqual(m.get_payload(decode=True).decode('ks_c_5601-1987'), content)
self.assertEqual(bytes(m), textwrap.dedent("""\
Content-Type: text/plain; charset="ks_c_5601-1987"
Content-Transfer-Encoding: 8bit

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am a bit surprised that Content-Transfer-Encoding is 8bit instead of base64, like above. This I why I add this test.


\ud55c\uad6d\uc5b4
\uac02
""").encode('ks_c_5601-1987'))
self.assertEqual(m.get_payload(decode=True), content.encode('ks_c_5601-1987'))
self.assertEqual(m.get_content(), content)

def test_set_text_plain_long_line_heuristics(self):
Expand Down
Loading