summaryrefslogtreecommitdiff
path: root/Lib/test/test_email/test_contentmanager.py
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2014-02-07 12:40:37 -0500
committerR David Murray <rdmurray@bitdance.com>2014-02-07 12:40:37 -0500
commit27e9de669be928b09d71fdd31f84da7b86f9a1fc (patch)
tree7a337c8b0a5b6f4ae0beb7c3e38b37aa61b21d33 /Lib/test/test_email/test_contentmanager.py
parent790202d61308efd3e7bc69cd61bff2306d789e57 (diff)
downloadcpython-git-27e9de669be928b09d71fdd31f84da7b86f9a1fc.tar.gz
#20531: Revert e20f98a8ed71, the 3.4 version of the #19063 fix.
Diffstat (limited to 'Lib/test/test_email/test_contentmanager.py')
-rw-r--r--Lib/test/test_email/test_contentmanager.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/test_email/test_contentmanager.py b/Lib/test/test_email/test_contentmanager.py
index fa2d3d266a..1629e2d8fd 100644
--- a/Lib/test/test_email/test_contentmanager.py
+++ b/Lib/test/test_email/test_contentmanager.py
@@ -208,11 +208,12 @@ class TestRawDataManager(TestEmailBase):
"Basìc tëxt.\n")
def test_get_text_plain_utf8_base64_recoverable_bad_CTE_data(self):
- m = self._bytes_msg(textwrap.dedent("""\
+ m = self._str_msg(textwrap.dedent("""\
Content-Type: text/plain; charset="utf8"
Content-Transfer-Encoding: base64
- QmFzw6xjIHTDq3h0Lgo""").encode('ascii') + b'\xFF=\n')
+ QmFzw6xjIHTDq3h0Lgo\xFF=
+ """))
self.assertEqual(raw_data_manager.get_content(m, errors='ignore'),
"Basìc tëxt.\n")