Message135773
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 |
|
Date |
User |
Action |
Args |
2011-05-11 13:01:58 | vstinner | set | recipients:
+ vstinner, lemburg, terry.reedy, ezio.melotti, cdqzzy |
2011-05-11 13:01:58 | vstinner | set | messageid: <1305118918.67.0.692946410577.issue12057@psf.upfronthosting.co.za> |
2011-05-11 13:01:57 | vstinner | link | issue12057 messages |
2011-05-11 13:01:57 | vstinner | create | |
|