]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] gh-149916: Restore the commented out part of test_body_encode in test_email...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 17 May 2026 08:31:49 +0000 (10:31 +0200)
committerGitHub <noreply@github.com>
Sun, 17 May 2026 08:31:49 +0000 (08:31 +0000)
(cherry picked from commit 1cbe035723698f15aa1b1af5deef615b28aae2e5)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/test/test_email/test_email.py

index 3ba3e86ab65bd73bd837ac0c712e18c135997d7d..3d5d2015ee01aa69c8aa4dfe5daeeb07c7a5f2dc 100644 (file)
@@ -4994,15 +4994,8 @@ class TestCharset(unittest.TestCase):
         # Try the convert argument, where input codec != output codec
         c = Charset('euc-jp')
         # With apologies to Tokio Kikuchi ;)
-        # XXX FIXME
-##         try:
-##             eq('\x1b$B5FCO;~IW\x1b(B',
-##                c.body_encode('\xb5\xc6\xc3\xcf\xbb\xfe\xc9\xd7'))
-##             eq('\xb5\xc6\xc3\xcf\xbb\xfe\xc9\xd7',
-##                c.body_encode('\xb5\xc6\xc3\xcf\xbb\xfe\xc9\xd7', False))
-##         except LookupError:
-##             # We probably don't have the Japanese codecs installed
-##             pass
+        eq('\x1b$B5FCO;~IW\x1b(B',
+           c.body_encode('\u83ca\u5730\u6642\u592b'))
         # Testing SF bug #625509, which we have to fake, since there are no
         # built-in encodings where the header encoding is QP but the body
         # encoding is not.