[New-bugs-announce] [issue13406] Deprecation warnings when running the test suite

Antoine Pitrou report at bugs.python.org
Tue Nov 15 00:12:00 CET 2011


New submission from Antoine Pitrou <pitrou at free.fr>:

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 <report at bugs.python.org>
<http://bugs.python.org/issue13406>
_______________________________________


More information about the New-bugs-announce mailing list