We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9db7b01 commit 6235701Copy full SHA for 6235701
Lib/test/test_email/test_message.py
@@ -1056,6 +1056,8 @@ def test_get_body_malformed(self):
1056
m.get_body()
1057
1058
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.
1061
payload = memoryview(b'Some payload')
1062
m = self._make_message()
1063
m.add_header('Content-Transfer-Encoding', 'quoted-printable')
0 commit comments