diff --git a/Lib/test/test_userstring.py b/Lib/test/test_userstring.py index 4d1d8b6b6..b6c11cc4e 100644 --- a/Lib/test/test_userstring.py +++ b/Lib/test/test_userstring.py @@ -14,6 +14,16 @@ class UserStringTest( type2test = UserString + # TODO: RUSTPYTHON + @unittest.expectedFailure + def test_removeprefix(self): + super().test_removeprefix() + + # TODO: RUSTPYTHON + @unittest.expectedFailure + def test_removesuffix(self): + super().test_removesuffix() + # Overwrite the three testing methods, because UserString # can't cope with arguments propagated to UserString # (and we don't test with subclasses) @@ -51,6 +61,8 @@ class UserStringTest( str3 = ustr3('TEST') self.assertEqual(fmt2 % str3, 'value is TEST') + # TODO: RUSTPYTHON + @unittest.expectedFailure def test_encode_default_args(self): self.checkequal(b'hello', 'hello', 'encode') # Check that encoding defaults to utf-8 @@ -58,6 +70,8 @@ class UserStringTest( # Check that errors defaults to 'strict' self.checkraises(UnicodeError, '\ud800', 'encode') + # TODO: RUSTPYTHON + @unittest.expectedFailure def test_encode_explicit_none_args(self): self.checkequal(b'hello', 'hello', 'encode', None, None) # Check that encoding defaults to utf-8