Message210309
The ReadTest.test_readline test in Lib/test/test_codecs.py has two loops on "\n \r\n \r \u2028".split(). But as far as "\n \r\n \r \u2028".split() is empty list (because newline characters are whitespace characters), the bodies of these loops are never executed.
After fixing this bug, a number of other tests were exposed. I tried to fix them. The purpose of these tests is not entirely clear, so I'm not sure that it is properly grasped the idea of the author.
Test was added in issue1076985 and modified in issue1175396. |
|
Date |
User |
Action |
Args |
2014-02-05 13:09:34 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, doerwalter |
2014-02-05 13:09:34 | serhiy.storchaka | set | messageid: <1391605774.47.0.366195437882.issue20520@psf.upfronthosting.co.za> |
2014-02-05 13:09:34 | serhiy.storchaka | link | issue20520 messages |
2014-02-05 13:09:34 | serhiy.storchaka | create | |
|