[New-bugs-announce] [issue12057] HZ codec has no test
report at bugs.python.org
Wed May 11 15:01:58 CEST 2011
New submission from STINNER Victor <victor.stinner at haypocalc.com>:
All CJK codecs have tests except the chinese HZ codec, I don't know why.
But to add a test, I need to add data to Lib/test/cjkencodings_test.py and the format of this file is not documented. It is not too difficult to understand the format by reading the code of the tests, but it's hard to maintain these tests (add more tests or change a test).
I need tests to be able to patch the codec to fix #12016.
My plan is to:
- Change Lib/test/cjkencodings_test.py format: use two files for each encoding (one in the tested encoding, one in UTF-8)
- Add tests to the HZ codec
- Close this issue
- Fix #12016
components: Library (Lib), Unicode
nosy: cdqzzy, ezio.melotti, haypo, lemburg, terry.reedy
title: HZ codec has no test
versions: Python 2.7, Python 3.1, Python 3.2, Python 3.3
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce