]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-149916: Restore the commented out part of test_body_encode in test_email (GH-149917)
authorSerhiy Storchaka <storchaka@gmail.com>
Sun, 17 May 2026 08:06:35 +0000 (11:06 +0300)
committerGitHub <noreply@github.com>
Sun, 17 May 2026 08:06:35 +0000 (11:06 +0300)
Lib/test/test_email/test_email.py

index 7778566492d8f4479d0b9be2bb2d9ed2bb89568f..d2c2261edbe04e156a0bac2545ecffdde96168d4 100644 (file)
@@ -4995,15 +4995,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.