@@ -14,6 +14,16 @@ class UserStringTest(
1414
1515 type2test = UserString
1616
17+ # TODO: RUSTPYTHON
18+ @unittest .expectedFailure
19+ def test_removeprefix (self ):
20+ super ().test_removeprefix ()
21+
22+ # TODO: RUSTPYTHON
23+ @unittest .expectedFailure
24+ def test_removesuffix (self ):
25+ super ().test_removesuffix ()
26+
1727 # Overwrite the three testing methods, because UserString
1828 # can't cope with arguments propagated to UserString
1929 # (and we don't test with subclasses)
@@ -51,13 +61,17 @@ def __rmod__(self, other):
5161 str3 = ustr3 ('TEST' )
5262 self .assertEqual (fmt2 % str3 , 'value is TEST' )
5363
64+ # TODO: RUSTPYTHON
65+ @unittest .expectedFailure
5466 def test_encode_default_args (self ):
5567 self .checkequal (b'hello' , 'hello' , 'encode' )
5668 # Check that encoding defaults to utf-8
5769 self .checkequal (b'\xf0 \xa3 \x91 \x96 ' , '\U00023456 ' , 'encode' )
5870 # Check that errors defaults to 'strict'
5971 self .checkraises (UnicodeError , '\ud800 ' , 'encode' )
6072
73+ # TODO: RUSTPYTHON
74+ @unittest .expectedFailure
6175 def test_encode_explicit_none_args (self ):
6276 self .checkequal (b'hello' , 'hello' , 'encode' , None , None )
6377 # Check that encoding defaults to utf-8
0 commit comments