Re: doctest.testfile fails on text files with Windows line endings

2010-04-10 Thread Patrick Maupin
On Apr 10, 10:16 pm, Steven D'Aprano wrote: > After converting a text file containing doctests to use Windows line > endings, I'm getting spurious errors: > > ValueError: line 19 of the docstring for examples.txt has inconsistent > leading whitespace: '\r' > > I don't believe that doctest.testfile

doctest.testfile fails on text files with Windows line endings

2010-04-10 Thread Steven D'Aprano
After converting a text file containing doctests to use Windows line endings, I'm getting spurious errors: ValueError: line 19 of the docstring for examples.txt has inconsistent leading whitespace: '\r' I don't believe that doctest.testfile is documented as requiring Unix line endings, and th