aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_email/test_email.py
diff options
context:
space:
mode:
authorGrégory Starck <g.starck@gmail.com>2021-03-30 04:37:37 -0400
committerGitHub <noreply@github.com>2021-03-30 17:37:37 +0900
commitcf35e05f89bb008d6f4553f9875e0fe87fc02406 (patch)
tree9fe5a87f0acdd3683fe6e3da7fafb5d8383568a5 /Lib/test/test_email/test_email.py
parentdfeec347f21b86879ba8f27f567bb275b243f1bc (diff)
downloadcpython-cf35e05f89bb008d6f4553f9875e0fe87fc02406.tar.gz
cpython-cf35e05f89bb008d6f4553f9875e0fe87fc02406.zip
bpo-43125: Fix: return expected type (str), not original value (bytes) in email/base64mime.py::body_encode (GH-24476)
Diffstat (limited to 'Lib/test/test_email/test_email.py')
-rw-r--r--Lib/test/test_email/test_email.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/test/test_email/test_email.py b/Lib/test/test_email/test_email.py
index 044b93862a1..720a63b4e48 100644
--- a/Lib/test/test_email/test_email.py
+++ b/Lib/test/test_email/test_email.py
@@ -4261,7 +4261,7 @@ class TestBase64(unittest.TestCase):
def test_encode(self):
eq = self.assertEqual
- eq(base64mime.body_encode(b''), b'')
+ eq(base64mime.body_encode(b''), '')
eq(base64mime.body_encode(b'hello'), 'aGVsbG8=\n')
# Test the binary flag
eq(base64mime.body_encode(b'hello\n'), 'aGVsbG8K\n')
@@ -4292,7 +4292,6 @@ eHh4eCB4eHh4IA==\r
eq(he('hello\nworld'), '=?iso-8859-1?b?aGVsbG8Kd29ybGQ=?=')
-
class TestQuopri(unittest.TestCase):
def setUp(self):
# Set of characters (as byte integers) that don't need to be encoded