Skip to content

Commit 03d01d6

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

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
@@ -4994,15 +4994,8 @@ def test_body_encode(self):
49944994
# Try the convert argument, where input codec != output codec
49954995
c = Charset('euc-jp')
49964996
# With apologies to Tokio Kikuchi ;)
4997-
# XXX FIXME
4998-
## try:
4999-
## eq('\x1b$B5FCO;~IW\x1b(B',
5000-
## c.body_encode('\xb5\xc6\xc3\xcf\xbb\xfe\xc9\xd7'))
5001-
## eq('\xb5\xc6\xc3\xcf\xbb\xfe\xc9\xd7',
5002-
## c.body_encode('\xb5\xc6\xc3\xcf\xbb\xfe\xc9\xd7', False))
5003-
## except LookupError:
5004-
## # We probably don't have the Japanese codecs installed
5005-
## pass
4997+
eq('\x1b$B5FCO;~IW\x1b(B',
4998+
c.body_encode('\u83ca\u5730\u6642\u592b'))
50064999
# Testing SF bug #625509, which we have to fake, since there are no
50075000
# built-in encodings where the header encoding is QP but the body
50085001
# encoding is not.

0 commit comments

Comments
 (0)