Issue #7462: Implement the stringlib fast search algorithm for the `rfind`,
`rindex`, `rsplit` and `rpartition` methods. Patch by Florent Xicluna.
diff --git a/Lib/test/test_unicode.py b/Lib/test/test_unicode.py
index 31bceb3..d67a2e1 100644
--- a/Lib/test/test_unicode.py
+++ b/Lib/test/test_unicode.py
@@ -499,9 +499,12 @@
)
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'
),