mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 18:59:04 +08:00
Mark erroring/failing tests
This commit is contained in:
1 file changed
+14
@@ -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
|
||||
|
||||
Reference in new issue
Block a user