[issue10134] test_email failures on Windows: end of line issue?

R. David Murray report at bugs.python.org
Mon Oct 18 22:12:58 CEST 2010


R. David Murray <rdmurray at bitdance.com> added the comment:

Here is a patch that adds a test of the underlying problem and fixes it.  I don't like this patch because it tries to detect the line ending style of the input stream and changes behavior based on that, but because email wants to use '\n' as the separator internally I don't see another way to fix it at the moment.  The ugliest part is that I changed the expected result of one existing test...but that test uses an artificial way of opening an input file in order to test the parser's universal newline handling, and I think the behavior tested is arguably incorrect.

I'm not sure this will fix all the windows failures, but it should fix most of them.

----------
keywords: +patch
Added file: http://bugs.python.org/file19273/windows_email_fix.patch

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


More information about the Python-bugs-list mailing list