New submission from Antoine Pitrou <[email protected]>:
Now that the unicode-internal codec is deprecated, the test suite spouts some
warning (in test_codecs, test_codeccallbacks and test_unicode). Example:
[344/361] test_codecs
/home/antoine/cpython/default/Lib/test/test_codecs.py:1024: DeprecationWarning:
unicode_internal codecs has been deprecated
self.assertEqual(uni, internal.decode("unicode_internal"))
/home/antoine/cpython/default/Lib/unittest/case.py:135: DeprecationWarning:
unicode_internal codecs has been deprecated
callable_obj(*args, **kwargs)
/home/antoine/cpython/default/Lib/test/test_codecs.py:1047: DeprecationWarning:
unicode_internal codecs has been deprecated
ab = "ab".encode("unicode_internal").decode()
/home/antoine/cpython/default/Lib/test/test_codecs.py:1050: DeprecationWarning:
unicode_internal codecs has been deprecated
"UnicodeInternalTest")
/home/antoine/cpython/default/Lib/test/test_codecs.py:1034: DeprecationWarning:
unicode_internal codecs has been deprecated
b"\x00\x00\x00\x00\x00\x11\x11\x00".decode("unicode_internal")
/home/antoine/cpython/default/Lib/test/test_codecs.py:1056: DeprecationWarning:
unicode_internal codecs has been deprecated
self.assertEqual(encoder("a")[1], 1)
/home/antoine/cpython/default/Lib/test/test_codecs.py:1057: DeprecationWarning:
unicode_internal codecs has been deprecated
self.assertEqual(encoder("\xe9\u0142")[1], 2)
/home/antoine/cpython/default/Lib/test/test_codecs.py:1515: DeprecationWarning:
unicode_internal codecs has been deprecated
(b, size) = codecs.getencoder(encoding)(s)
/home/antoine/cpython/default/Lib/test/test_codecs.py:1517: DeprecationWarning:
unicode_internal codecs has been deprecated
(chars, size) = codecs.getdecoder(encoding)(b)
----------
components: Tests
keywords: easy
messages: 147637
nosy: ezio.melotti, haypo, pitrou
priority: normal
severity: normal
stage: needs patch
status: open
title: Deprecation warnings when running the test suite
type: behavior
versions: Python 3.3
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue13406>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com