Merge DeprecationWarnings silencing in test_unicode from 3.3.

This commit is contained in:
Ezio Melotti 2013-02-21 00:01:44 +02:00
commit 09d9d0f385

View file

@ -2196,6 +2196,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)