[Zope-dev] windows newslines in doctests

Benji York benji at zope.com
Thu Dec 31 13:09:36 EST 2009


On Tue, Dec 29, 2009 at 2:15 PM, Chris Withers <chris at simplistix.co.uk> wrote:
> Fred Drake wrote:
>>
>> It's interesting to note that Python 2.6's doctest doesn't use
>> universal newlines, but zope.testing.doctest.

> Interestingly, the doctests I referred to in my original post were
> Manuel doctests, which (Benji, lemme know if I'm wrong...) use Python's
> doctest module rather than zope.testing's one, in which case I think you
>  may have hit the nail precisely on the head...

Manuel uses Python's doctest module for the actual work, but the file
reading is done by Manuel itself.  I could switch to using universal new
line mode, but since I haven't seen an example of a filing test I can't
be sure if it'll help or not.
-- 
Benji York


More information about the Zope-Dev mailing list