cpython: ff1366ff2761 (original) (raw)

--- a/Lib/test/test_codecs.py +++ b/Lib/test/test_codecs.py @@ -690,9 +690,9 @@ class UTF7Test(ReadTest): def test_errors(self): tests = [

@@ -708,8 +708,8 @@ class UTF7Test(ReadTest): ('a+//,+IKw-b', u'a\ufffd\u20acb'), ('a+///,+IKw-b', u'a\uffff\ufffd\u20acb'), ('a+////,+IKw-b', u'a\uffff\ufffd\u20acb'),

@@ -738,16 +738,16 @@ class UTF7Test(ReadTest): def test_lone_surrogates(self): tests = [ ('a+2AE-b', u'a\ud801b'),

--- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -1555,7 +1555,10 @@ int unicode_decode_call_errorhandler(con /* Is c a base-64 character? */ #define IS_BASE64(c) [](#l2.6)

/* given that c is a base-64 character, what is its base-64 value? */