@@ -869,6 +869,11 @@ def test_bug691291(self):
869
869
with reader :
870
870
self .assertEqual (reader .read (), s1 )
871
871
872
+ # TODO: RUSTPYTHON
873
+ @unittest .expectedFailure
874
+ def test_incremental_surrogatepass (self ):
875
+ super ().test_incremental_surrogatepass ()
876
+
872
877
class UTF16LETest (ReadTest , unittest .TestCase ):
873
878
encoding = "utf-16-le"
874
879
ill_formed_sequence = b"\x80 \xdc "
@@ -917,6 +922,11 @@ def test_nonbmp(self):
917
922
self .assertEqual (b'\x00 \xd8 \x03 \xde ' .decode (self .encoding ),
918
923
"\U00010203 " )
919
924
925
+ # TODO: RUSTPYTHON
926
+ @unittest .expectedFailure
927
+ def test_incremental_surrogatepass (self ):
928
+ super ().test_incremental_surrogatepass ()
929
+
920
930
class UTF16BETest (ReadTest , unittest .TestCase ):
921
931
encoding = "utf-16-be"
922
932
ill_formed_sequence = b"\xdc \x80 "
@@ -965,6 +975,11 @@ def test_nonbmp(self):
965
975
self .assertEqual (b'\xd8 \x00 \xde \x03 ' .decode (self .encoding ),
966
976
"\U00010203 " )
967
977
978
+ # TODO: RUSTPYTHON
979
+ @unittest .expectedFailure
980
+ def test_incremental_surrogatepass (self ):
981
+ super ().test_incremental_surrogatepass ()
982
+
968
983
class UTF8Test (ReadTest , unittest .TestCase ):
969
984
encoding = "utf-8"
970
985
ill_formed_sequence = b"\xed \xb2 \x80 "
@@ -998,8 +1013,6 @@ def test_decoder_state(self):
998
1013
self .check_state_handling_decode (self .encoding ,
999
1014
u , u .encode (self .encoding ))
1000
1015
1001
- # TODO: RUSTPYTHON
1002
- @unittest .expectedFailure
1003
1016
def test_decode_error (self ):
1004
1017
for data , error_handler , expected in (
1005
1018
(b'[\x80 \xff ]' , 'ignore' , '[]' ),
@@ -1026,8 +1039,6 @@ def test_lone_surrogates(self):
1026
1039
exc = cm .exception
1027
1040
self .assertEqual (exc .object [exc .start :exc .end ], '\uD800 \uDFFF ' )
1028
1041
1029
- # TODO: RUSTPYTHON
1030
- @unittest .expectedFailure
1031
1042
def test_surrogatepass_handler (self ):
1032
1043
self .assertEqual ("abc\ud800 def" .encode (self .encoding , "surrogatepass" ),
1033
1044
self .BOM + b"abc\xed \xa0 \x80 def" )
@@ -2884,8 +2895,6 @@ def test_escape_encode(self):
2884
2895
2885
2896
class SurrogateEscapeTest (unittest .TestCase ):
2886
2897
2887
- # TODO: RUSTPYTHON
2888
- @unittest .expectedFailure
2889
2898
def test_utf8 (self ):
2890
2899
# Bad byte
2891
2900
self .assertEqual (b"foo\x80 bar" .decode ("utf-8" , "surrogateescape" ),
@@ -2898,8 +2907,6 @@ def test_utf8(self):
2898
2907
self .assertEqual ("\udced \udcb0 \udc80 " .encode ("utf-8" , "surrogateescape" ),
2899
2908
b"\xed \xb0 \x80 " )
2900
2909
2901
- # TODO: RUSTPYTHON
2902
- @unittest .expectedFailure
2903
2910
def test_ascii (self ):
2904
2911
# bad byte
2905
2912
self .assertEqual (b"foo\x80 bar" .decode ("ascii" , "surrogateescape" ),
@@ -2916,8 +2923,6 @@ def test_charmap(self):
2916
2923
self .assertEqual ("foo\udca5 bar" .encode ("iso-8859-3" , "surrogateescape" ),
2917
2924
b"foo\xa5 bar" )
2918
2925
2919
- # TODO: RUSTPYTHON
2920
- @unittest .expectedFailure
2921
2926
def test_latin1 (self ):
2922
2927
# Issue6373
2923
2928
self .assertEqual ("\udce4 \udceb \udcef \udcf6 \udcfc " .encode ("latin-1" , "surrogateescape" ),
@@ -3561,8 +3566,6 @@ class ASCIITest(unittest.TestCase):
3561
3566
def test_encode (self ):
3562
3567
self .assertEqual ('abc123' .encode ('ascii' ), b'abc123' )
3563
3568
3564
- # TODO: RUSTPYTHON
3565
- @unittest .expectedFailure
3566
3569
def test_encode_error (self ):
3567
3570
for data , error_handler , expected in (
3568
3571
('[\x80 \xff \u20ac ]' , 'ignore' , b'[]' ),
@@ -3585,8 +3588,6 @@ def test_encode_surrogateescape_error(self):
3585
3588
def test_decode (self ):
3586
3589
self .assertEqual (b'abc' .decode ('ascii' ), 'abc' )
3587
3590
3588
- # TODO: RUSTPYTHON
3589
- @unittest .expectedFailure
3590
3591
def test_decode_error (self ):
3591
3592
for data , error_handler , expected in (
3592
3593
(b'[\x80 \xff ]' , 'ignore' , '[]' ),
@@ -3609,8 +3610,6 @@ def test_encode(self):
3609
3610
with self .subTest (data = data , expected = expected ):
3610
3611
self .assertEqual (data .encode ('latin1' ), expected )
3611
3612
3612
- # TODO: RUSTPYTHON
3613
- @unittest .expectedFailure
3614
3613
def test_encode_errors (self ):
3615
3614
for data , error_handler , expected in (
3616
3615
('[\u20ac \udc80 ]' , 'ignore' , b'[]' ),
0 commit comments