Issue #7462: Implement the stringlib fast search algorithm for the rfind,

`rindex`, `rsplit` and `rpartition` methods.  Patch by Florent Xicluna.
This commit is contained in:
Antoine Pitrou 2010-01-02 21:12:58 +00:00
parent d3e323215c
commit 5b7139aab4
11 changed files with 148 additions and 149 deletions

View file

@ -499,9 +499,12 @@ class UnicodeTest(
)
if not sys.platform.startswith('java'):
# Silence Py3k warning
with test_support.check_warnings():
buf = buffer('character buffers are decoded to unicode')
self.assertEqual(
unicode(
buffer('character buffers are decoded to unicode'),
buf,
'utf-8',
'strict'
),