Skip to content

Commit 1cbe035

Browse files
gh-149916: Restore the commented out part of test_body_encode in test_email (GH-149917)
1 parent 1bab6c9 commit 1cbe035

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

0 commit comments

Comments
 (0)