[issue20520] Readline test in test_codecs is broken

Walter Dörwald report at bugs.python.org
Wed Feb 5 15:07:39 CET 2014


Walter Dörwald added the comment:

"\n \r\n \r \u2028".split() should have been "\n \r\n \r \u2028".split(" "), i.e. a list of different line ends.

> The purpose of these tests is not entirely clear, so I'm not sure that it is properly grasped the idea of the author.

I wrote the tests nearly 10 years ago, so it's no longer entirely clear to me either! ;)

Anyway, here's a patch that fixes the resulting test failures.

----------
Added file: http://bugs.python.org/file33930/fix_linetests.diff

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


More information about the Python-bugs-list mailing list