From 48070c1248c97238493025553fe474ad9eca168d Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Sun, 29 Mar 2015 19:21:02 +0300 Subject: Issue #23803: Fixed str.partition() and str.rpartition() when a separator is wider then partitioned string. --- Lib/test/test_unicode.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Lib/test/test_unicode.py') diff --git a/Lib/test/test_unicode.py b/Lib/test/test_unicode.py index 13a01f96cef..5efbe3e42ca 100644 --- a/Lib/test/test_unicode.py +++ b/Lib/test/test_unicode.py @@ -375,6 +375,7 @@ class UnicodeTest(string_tests.CommonTest, def test_partition(self): string_tests.MixinStrUnicodeUserStringTest.test_partition(self) # test mixed kinds + self.checkequal(('ABCDEFGH', '', ''), 'ABCDEFGH', 'partition', '\u4200') for left, right in ('ba', '\u0101\u0100', '\U00010301\U00010300'): left *= 9 right *= 9 @@ -391,6 +392,7 @@ class UnicodeTest(string_tests.CommonTest, def test_rpartition(self): string_tests.MixinStrUnicodeUserStringTest.test_rpartition(self) # test mixed kinds + self.checkequal(('', '', 'ABCDEFGH'), 'ABCDEFGH', 'rpartition', '\u4200') for left, right in ('ba', '\u0101\u0100', '\U00010301\U00010300'): left *= 9 right *= 9 -- cgit v1.2.3