This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients cdqzzy, ezio.melotti, lemburg, terry.reedy, vstinner
Date 2011-05-11.13:01:57
SpamBayes Score 1.194631e-07
Marked as misclassified No
Message-id <1305118918.67.0.692946410577.issue12057@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2011-05-11 13:01:58vstinnersetrecipients: + vstinner, lemburg, terry.reedy, ezio.melotti, cdqzzy
2011-05-11 13:01:58vstinnersetmessageid: <1305118918.67.0.692946410577.issue12057@psf.upfronthosting.co.za>
2011-05-11 13:01:57vstinnerlinkissue12057 messages
2011-05-11 13:01:57vstinnercreate