[issue22681] Add support of KOI8-T encoding

Ned Deily report at bugs.python.org
Tue May 12 23:21:15 CEST 2015


Ned Deily added the comment:

Lots of "LookupError: unknown encoding: koi8_t" test failures (on OS X 10.10) after this commit, for example, in test_codecs:

======================================================================
ERROR: test_basics (test.test_codecs.BasicUnicodeTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/py/dev/3x/source/Lib/test/test_codecs.py", line 1869, in test_basics
    name = codecs.lookup(encoding).name
LookupError: unknown encoding: koi8_t

======================================================================
ERROR: test_decoder_state (test.test_codecs.BasicUnicodeTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/py/dev/3x/source/Lib/test/test_codecs.py", line 2024, in test_decoder_state
    self.check_state_handling_decode(encoding, u, u.encode(encoding))
LookupError: unknown encoding: koi8_t

======================================================================
ERROR: test_seek (test.test_codecs.BasicUnicodeTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/py/dev/3x/source/Lib/test/test_codecs.py", line 1992, in test_seek
    reader = codecs.getreader(encoding)(io.BytesIO(s.encode(encoding)))
  File "/py/dev/3x/blds/uxd/../../source/Lib/codecs.py", line 998, in getreader
    return lookup(encoding).streamreader
LookupError: unknown encoding: koi8_t

----------------------------------------------------------------------
Ran 211 tests in 5.970s

FAILED (errors=5, skipped=17)

----------
nosy: +ned.deily

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22681>
_______________________________________


More information about the Python-bugs-list mailing list