Skip to content

Commit 6235701

Browse files
authored
Update Lib/test/test_email/test_message.py
1 parent 9db7b01 commit 6235701

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Lib/test/test_email/test_message.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1056,6 +1056,8 @@ def test_get_body_malformed(self):
10561056
m.get_body()
10571057

10581058
def test_get_bytes_payload_with_quoted_printable_encoding(self):
1059+
# We use a memoryview to avoid directly changing the private payload
1060+
# and to prevent using the dedicated paths for string or bytes objects.
10591061
payload = memoryview(b'Some payload')
10601062
m = self._make_message()
10611063
m.add_header('Content-Transfer-Encoding', 'quoted-printable')

0 commit comments

Comments
 (0)