Skip to content

Commit b2b35ba

Browse files
[3.13] gh-149916: Restore the commented out part of test_body_encode in test_email (GH-149917) (GH-149939)
(cherry picked from commit 1cbe035) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
1 parent e90f3ba commit b2b35ba

1 file changed

Lines changed: 2 additions & 9 deletions

File tree

Lib/test/test_email/test_email.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4969,15 +4969,8 @@ def test_body_encode(self):
49694969
# Try the convert argument, where input codec != output codec
49704970
c = Charset('euc-jp')
49714971
# With apologies to Tokio Kikuchi ;)
4972-
# XXX FIXME
4973-
## try:
4974-
## eq('\x1b$B5FCO;~IW\x1b(B',
4975-
## c.body_encode('\xb5\xc6\xc3\xcf\xbb\xfe\xc9\xd7'))
4976-
## eq('\xb5\xc6\xc3\xcf\xbb\xfe\xc9\xd7',
4977-
## c.body_encode('\xb5\xc6\xc3\xcf\xbb\xfe\xc9\xd7', False))
4978-
## except LookupError:
4979-
## # We probably don't have the Japanese codecs installed
4980-
## pass
4972+
eq('\x1b$B5FCO;~IW\x1b(B',
4973+
c.body_encode('\u83ca\u5730\u6642\u592b'))
49814974
# Testing SF bug #625509, which we have to fake, since there are no
49824975
# built-in encodings where the header encoding is QP but the body
49834976
# encoding is not.

0 commit comments

Comments
 (0)