summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_unicode.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-03-29 16:21:02 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2015-03-29 16:21:02 (GMT)
commit48070c1248c97238493025553fe474ad9eca168d (patch)
tree059690cc3ec037f389723ab59d364cd18fe643ea /Lib/test/test_unicode.py
parent9db55004a1bc0c0b3efca69dcd577ff58a86ea16 (diff)
downloadcpython-48070c1248c97238493025553fe474ad9eca168d.zip
cpython-48070c1248c97238493025553fe474ad9eca168d.tar.gz
cpython-48070c1248c97238493025553fe474ad9eca168d.tar.bz2
Issue #23803: Fixed str.partition() and str.rpartition() when a separator
is wider then partitioned string.
Diffstat (limited to 'Lib/test/test_unicode.py')
-rw-r--r--Lib/test/test_unicode.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_unicode.py b/Lib/test/test_unicode.py
index 13a01f9..5efbe3e 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