Commit 51e243f2 authored by Ezio Melotti's avatar Ezio Melotti

Silence DeprecationWarnings in test_unicode.

parent 795c10b3
......@@ -2172,6 +2172,8 @@ class UnicodeTest(string_tests.CommonTest,
# generate a fresh string (refcount=1)
text = 'a' * length + 'b'
with support.check_warnings(('unicode_internal codec has been '
'deprecated', DeprecationWarning)):
# fill wstr internal field
abc = text.encode('unicode_internal')
self.assertEqual(abc.decode('unicode_internal'), text)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment