mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
Merge: #14983: always add a line end after a MIME boundary marker.
This commit is contained in:
commit
66c3d18af1
4 changed files with 16 additions and 7 deletions
|
@ -1745,7 +1745,8 @@ From: bperson@dom.ain
|
|||
|
||||
--BOUNDARY
|
||||
|
||||
--BOUNDARY--''')
|
||||
--BOUNDARY--
|
||||
''')
|
||||
|
||||
def test_no_parts_in_a_multipart_with_empty_epilogue(self):
|
||||
outer = MIMEBase('multipart', 'mixed')
|
||||
|
@ -1790,7 +1791,8 @@ MIME-Version: 1.0
|
|||
Content-Transfer-Encoding: 7bit
|
||||
|
||||
hello world
|
||||
--BOUNDARY--''')
|
||||
--BOUNDARY--
|
||||
''')
|
||||
|
||||
def test_seq_parts_in_a_multipart_with_empty_preamble(self):
|
||||
eq = self.ndiffAssertEqual
|
||||
|
@ -1816,7 +1818,8 @@ MIME-Version: 1.0
|
|||
Content-Transfer-Encoding: 7bit
|
||||
|
||||
hello world
|
||||
--BOUNDARY--''')
|
||||
--BOUNDARY--
|
||||
''')
|
||||
|
||||
|
||||
def test_seq_parts_in_a_multipart_with_none_preamble(self):
|
||||
|
@ -1842,7 +1845,8 @@ MIME-Version: 1.0
|
|||
Content-Transfer-Encoding: 7bit
|
||||
|
||||
hello world
|
||||
--BOUNDARY--''')
|
||||
--BOUNDARY--
|
||||
''')
|
||||
|
||||
|
||||
def test_seq_parts_in_a_multipart_with_none_epilogue(self):
|
||||
|
@ -1868,7 +1872,8 @@ MIME-Version: 1.0
|
|||
Content-Transfer-Encoding: 7bit
|
||||
|
||||
hello world
|
||||
--BOUNDARY--''')
|
||||
--BOUNDARY--
|
||||
''')
|
||||
|
||||
|
||||
def test_seq_parts_in_a_multipart_with_empty_epilogue(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue