diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2010-01-02 21:12:58 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2010-01-02 21:12:58 (GMT) |
commit | 5b7139aab41becad7ad736bd9ff2332960bf67f9 (patch) | |
tree | 9d3d3e7da0c0073af1fd2784fa7892d3222f9e88 /Lib/test/test_unicode.py | |
parent | d3e323215c6d9f303bf42875f98e365e2ff1734f (diff) | |
download | cpython-5b7139aab41becad7ad736bd9ff2332960bf67f9.zip cpython-5b7139aab41becad7ad736bd9ff2332960bf67f9.tar.gz cpython-5b7139aab41becad7ad736bd9ff2332960bf67f9.tar.bz2 |
Issue #7462: Implement the stringlib fast search algorithm for the `rfind`,
`rindex`, `rsplit` and `rpartition` methods. Patch by Florent Xicluna.
Diffstat (limited to 'Lib/test/test_unicode.py')
-rw-r--r-- | Lib/test/test_unicode.py | 5 |
1 files changed, 4 insertions, 1 deletions
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 @@ 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' ), |