mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Issue #12037: Fix test_email for desktop Windows.
This commit is contained in:
parent
31e4d325b6
commit
740d6b6f39
2 changed files with 4 additions and 2 deletions
|
@ -180,8 +180,8 @@ class TestMessageAPI(TestEmailBase):
|
|||
|
||||
def test_byte_message_rfc822_only(self):
|
||||
# Make sure new bytes header parser also passes this.
|
||||
with openfile('msg_46.txt', 'rb') as fp:
|
||||
msgdata = fp.read()
|
||||
with openfile('msg_46.txt') as fp:
|
||||
msgdata = fp.read().encode('ascii')
|
||||
parser = email.parser.BytesHeaderParser()
|
||||
msg = parser.parsebytes(msgdata)
|
||||
out = BytesIO()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue