[3.13] gh-149916: Restore the commented out part of test_body_encode in test_email (GH-149917) (GH-149939)

(cherry picked from commit 1cbe035723)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
This commit is contained in:
Miss Islington (bot) 2026-05-17 10:29:33 +02:00 committed by GitHub
parent e90f3baf5d
commit b2b35bad02
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4969,15 +4969,8 @@ def test_body_encode(self):
# 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.