summaryrefslogtreecommitdiffstats
path: root/Lib/test/string_tests.py
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-09-05 02:21:38 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2006-09-05 02:21:38 (GMT)
commit29a5fdb7caf372144a085247d63440d1abb51b5c (patch)
tree80f97caeff9f1ed20f41b8bea2a7dad95dec0ec0 /Lib/test/string_tests.py
parent8dc71f21618346c273fdbe49004890d64dfada6e (diff)
downloadcpython-29a5fdb7caf372144a085247d63440d1abb51b5c.zip
cpython-29a5fdb7caf372144a085247d63440d1abb51b5c.tar.gz
cpython-29a5fdb7caf372144a085247d63440d1abb51b5c.tar.bz2
Fix str.rpartition(sep) when sep is not found in str.
Partially from SF patch #1551339, but also taken from head.
Diffstat (limited to 'Lib/test/string_tests.py')
-rw-r--r--Lib/test/string_tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/string_tests.py b/Lib/test/string_tests.py
index 73447ad..1aa68de 100644
--- a/Lib/test/string_tests.py
+++ b/Lib/test/string_tests.py
@@ -1069,7 +1069,7 @@ class MixinStrUnicodeUserStringTest:
# from raymond's original specification
S = 'http://www.python.org'
self.checkequal(('http', '://', 'www.python.org'), S, 'rpartition', '://')
- self.checkequal(('http://www.python.org', '', ''), S, 'rpartition', '?')
+ self.checkequal(('', '', 'http://www.python.org'), S, 'rpartition', '?')
self.checkequal(('', 'http://', 'www.python.org'), S, 'rpartition', 'http://')
self.checkequal(('http://www.python.', 'org', ''), S, 'rpartition', 'org')