[New-bugs-announce] [issue20520] Readline test in test_codecs is broken
Serhiy Storchaka
report at bugs.python.org
Wed Feb 5 14:09:34 CET 2014
New submission from Serhiy Storchaka:
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.
----------
components: Tests
files: test_codecs_readline.patch
keywords: patch
messages: 210309
nosy: doerwalter, serhiy.storchaka
priority: normal
severity: normal
stage: patch review
status: open
title: Readline test in test_codecs is broken
type: behavior
versions: Python 2.7, Python 3.3, Python 3.4
Added file: http://bugs.python.org/file33928/test_codecs_readline.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20520>
_______________________________________
More information about the New-bugs-announce
mailing list