[issue1812] doctest _load_testfile function -- newline handling seems incorrect

Peter Donis report at bugs.python.org
Tue Jul 20 00:37:59 CEST 2010


Peter Donis <peterdonis at alum.mit.edu> added the comment:

Re msg110808, on thinking it over I realized it may not be so simple to get diff and patch to behave properly with a file like doctest_testfile.txt, where we want to intentionally mismatch newlines. We basically need to treat the file as binary rather than text (which also means that, since the file as I've uploaded it contains all Unix newlines except for the Windows and Mac specific lines, on a Windows or Mac system most of the file, including all the comment lines, ends up being part of the test). Maybe there's a way to set the svn:mime-type property to do that.

In the meantime, I've uploaded the raw doctest_testfile.txt file, so if necessary it can just be copied into the appropriate directory for testing.

----------
Added file: http://bugs.python.org/file18071/doctest_testfile.txt

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


More information about the Python-bugs-list mailing list