mirror of
https://github.com/python/cpython.git
synced 2025-08-01 07:33:08 +00:00
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:
parent
d3e323215c
commit
5b7139aab4
11 changed files with 148 additions and 149 deletions
|
@ -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'
|
||||
),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue