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 serhiy.storchaka
Recipients doerwalter, serhiy.storchaka
Date 2014-02-05.13:09:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1391605774.47.0.366195437882.issue20520@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2014-02-05 13:09:34serhiy.storchakasetrecipients: + serhiy.storchaka, doerwalter
2014-02-05 13:09:34serhiy.storchakasetmessageid: <1391605774.47.0.366195437882.issue20520@psf.upfronthosting.co.za>
2014-02-05 13:09:34serhiy.storchakalinkissue20520 messages
2014-02-05 13:09:34serhiy.storchakacreate