Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1b74d63

Browse files
Added explicit tests for issue #23803.
2 parents bfbfc8d + 48070c1 commit 1b74d63

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Lib/test/test_unicode.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,7 @@ def test_rsplit(self):
404404
def test_partition(self):
405405
string_tests.MixinStrUnicodeUserStringTest.test_partition(self)
406406
# test mixed kinds
407+
self.checkequal(('ABCDEFGH', '', ''), 'ABCDEFGH', 'partition', '\u4200')
407408
for left, right in ('ba', '\u0101\u0100', '\U00010301\U00010300'):
408409
left *= 9
409410
right *= 9
@@ -420,6 +421,7 @@ def test_partition(self):
420421
def test_rpartition(self):
421422
string_tests.MixinStrUnicodeUserStringTest.test_rpartition(self)
422423
# test mixed kinds
424+
self.checkequal(('', '', 'ABCDEFGH'), 'ABCDEFGH', 'rpartition', '\u4200')
423425
for left, right in ('ba', '\u0101\u0100', '\U00010301\U00010300'):
424426
left *= 9
425427
right *= 9

0 commit comments

Comments
 (0)