Mark erroring/failing tests

This commit is contained in:
Padraic Fanning committed 2021-06-10 20:04:34 -04:00
1 parent 7d0f109b3d
commit d56a0194b7
1 file changed
+14
+14
View File
@@ -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