STINNER Victor added the comment: > Would you like me to add tests for UTF-16-LE, etc. (via a helper test > method), or will UTF-16 alone suffice?
You can use a loop insteadd of an helper function. I fail to see other encoding having the same issue, except the UTF-32 family (utf-32, utf-32-le, utf-32-be). I don't think that writing a test for the 6 codecs is required, you can use utf-16 and utf-32-be. So you test without BOM and with BOM, and utf-16 and utf-32. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue15595> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com