[issue20520] Readline test in test_codecs is broken
Vajrasky Kok
report at bugs.python.org
Fri Feb 7 10:14:59 CET 2014
Vajrasky Kok added the comment:
The culprit:
diff -r b4e99bec0c8a Lib/test/test_codecs.py
--- a/Lib/test/test_codecs.py Fri Feb 07 10:10:55 2014 +0200
+++ b/Lib/test/test_codecs.py Fri Feb 07 17:14:12 2014 +0800
@@ -164,6 +164,8 @@
s = 10*(size*"a" + lineend + "xxx\n")
reader = getreader(s)
for i in range(10):
+ if size==64 and self.encoding == 'utf-7' and lineend=='\u2028' and i == 3:
+ import pdb; pdb.set_trace()
self.assertEqual(
reader.readline(keepends=True),
size*"a" + lineend,
----------
nosy: +vajrasky
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20520>
_______________________________________
More information about the Python-bugs-list
mailing list