Skip to content

Commit b5df09a

Browse files
committed
Disable failing unicode/string tests
1 parent e815835 commit b5df09a

File tree

2 files changed

+124
-0
lines changed

2 files changed

+124
-0
lines changed

Lib/test/string_tests.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,8 @@ def test_upper(self):
327327
self.checkequal('HELLO', 'HELLO', 'upper')
328328
self.checkraises(TypeError, 'hello', 'upper', 42)
329329

330+
# TODO: RUSTPYTHON
331+
@unittest.expectedFailure
330332
def test_expandtabs(self):
331333
self.checkequal('abc\rab def\ng hi', 'abc\rab\tdef\ng\thi',
332334
'expandtabs')
@@ -690,6 +692,8 @@ def test_capitalize(self):
690692

691693
self.checkraises(TypeError, 'hello', 'capitalize', 42)
692694

695+
# TODO: RUSTPYTHON
696+
@unittest.expectedFailure
693697
def test_additional_split(self):
694698
self.checkequal(['this', 'is', 'the', 'split', 'function'],
695699
'this is the split function', 'split')
@@ -726,6 +730,8 @@ def test_additional_split(self):
726730
self.checkequal(['arf', 'barf'], b, 'split', None)
727731
self.checkequal(['arf', 'barf'], b, 'split', None, 2)
728732

733+
# TODO: RUSTPYTHON
734+
@unittest.expectedFailure
729735
def test_additional_rsplit(self):
730736
self.checkequal(['this', 'is', 'the', 'rsplit', 'function'],
731737
'this is the rsplit function', 'rsplit')
@@ -827,6 +833,8 @@ def test_swapcase(self):
827833

828834
self.checkraises(TypeError, 'hello', 'swapcase', 42)
829835

836+
# TODO: RUSTPYTHON
837+
@unittest.expectedFailure
830838
def test_zfill(self):
831839
self.checkequal('123', '123', 'zfill', 2)
832840
self.checkequal('123', '123', 'zfill', 3)
@@ -942,6 +950,8 @@ def test_title(self):
942950
self.checkequal('Getint', "getInt", 'title')
943951
self.checkraises(TypeError, 'hello', 'title', 42)
944952

953+
# TODO: RUSTPYTHON
954+
@unittest.expectedFailure
945955
def test_splitlines(self):
946956
self.checkequal(['abc', 'def', '', 'ghi'], "abc\ndef\n\rghi", 'splitlines')
947957
self.checkequal(['abc', 'def', '', 'ghi'], "abc\ndef\n\r\nghi", 'splitlines')
@@ -974,6 +984,8 @@ def test_hash(self):
974984
hash(b)
975985
self.assertEqual(hash(a), hash(b))
976986

987+
# TODO: RUSTPYTHON
988+
@unittest.expectedFailure
977989
def test_capitalize_nonascii(self):
978990
# check that titlecased chars are lowered correctly
979991
# \u1ffc is the titlecased char
@@ -1354,6 +1366,8 @@ def test_none_arguments(self):
13541366
self.checkequal(True, s, 'startswith', 'h', None, -2)
13551367
self.checkequal(False, s, 'startswith', 'x', None, None)
13561368

1369+
# TODO: RUSTPYTHON
1370+
@unittest.expectedFailure
13571371
def test_find_etc_raise_correct_error_messages(self):
13581372
# issue 11828
13591373
s = 'hello'
@@ -1380,6 +1394,8 @@ def test_find_etc_raise_correct_error_messages(self):
13801394
class MixinStrUnicodeTest:
13811395
# Additional tests that only work with str.
13821396

1397+
# TODO: RUSTPYTHON
1398+
@unittest.expectedFailure
13831399
def test_bug1001011(self):
13841400
# Make sure join returns a NEW object for single item sequences
13851401
# involving a subclass.

0 commit comments

Comments
 (0)