@@ -820,6 +820,8 @@ def test_lookup(self):
820820 codecs .lookup_error ("namereplace" )
821821 )
822822
823+ # TODO: RUSTPYTHON
824+ @unittest .expectedFailure
823825 def test_encode_nonascii_replacement (self ):
824826 def handle (exc ):
825827 if isinstance (exc , UnicodeEncodeError ):
@@ -848,6 +850,8 @@ def handle(exc):
848850 self .assertEqual (exc .end , 2 )
849851 self .assertEqual (exc .object , input )
850852
853+ # TODO: RUSTPYTHON
854+ @unittest .expectedFailure
851855 def test_encode_unencodable_replacement (self ):
852856 def unencrepl (exc ):
853857 if isinstance (exc , UnicodeEncodeError ):
@@ -872,6 +876,8 @@ def unencrepl(exc):
872876 self .assertEqual (exc .end , 2 )
873877 self .assertEqual (exc .object , input )
874878
879+ # TODO: RUSTPYTHON
880+ @unittest .expectedFailure
875881 def test_encode_bytes_replacement (self ):
876882 def handle (exc ):
877883 if isinstance (exc , UnicodeEncodeError ):
@@ -894,6 +900,8 @@ def handle(exc):
894900 res = input .encode (enc , "test.replacing" )
895901 self .assertEqual (res , "[" .encode (enc ) + repl + "]" .encode (enc ))
896902
903+ # TODO: RUSTPYTHON
904+ @unittest .expectedFailure
897905 def test_encode_odd_bytes_replacement (self ):
898906 def handle (exc ):
899907 if isinstance (exc , UnicodeEncodeError ):
@@ -1065,6 +1073,8 @@ def __getitem__(self, key):
10651073 self .assertRaises (ValueError , codecs .charmap_encode , "\xff " , err , D ())
10661074 self .assertRaises (TypeError , codecs .charmap_encode , "\xff " , err , {0xff : 300 })
10671075
1076+ # TODO: RUSTPYTHON
1077+ @unittest .expectedFailure
10681078 def test_decodehelper_bug36819 (self ):
10691079 handler = RepeatedPosReturn ("x" )
10701080 codecs .register_error ("test.bug36819" , handler .handle )
@@ -1083,6 +1093,8 @@ def test_decodehelper_bug36819(self):
10831093 decoded = input .decode (enc , "test.bug36819" )
10841094 self .assertEqual (decoded , 'abcdx' * 51 )
10851095
1096+ # TODO: RUSTPYTHON
1097+ @unittest .expectedFailure
10861098 def test_encodehelper_bug36819 (self ):
10871099 handler = RepeatedPosReturn ()
10881100 codecs .register_error ("test.bug36819" , handler .handle )
0 commit comments