Skip to content

Commit af9dae0

Browse files
committed
Upd test for using public method.
1 parent 1789c2d commit af9dae0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/test/test_email/test_message.py

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

10581058
def test_get_bytes_payload_with_quoted_printable_encoding(self):
1059-
payload = b'Some payload'
1059+
payload = memoryview(b'Some payload')
10601060
m = self._make_message()
10611061
m.add_header('Content-Transfer-Encoding', 'quoted-printable')
1062-
m._payload = payload
1062+
m.set_payload(payload)
10631063
self.assertEqual(m.get_payload(decode=True), payload)
10641064

10651065

0 commit comments

Comments
 (0)