[Zope-dev] windows newslines in doctests

Chris Withers chris at simplistix.co.uk
Mon Dec 14 09:02:44 EST 2009


Hi All,

I've run into problems with Windows newlines in doctests a couple of 
times now and so thought I'd ask what people do in general to work 
around this...

Do you:

- make sure .txt that ends up being doctested only has \n line endings 
in it?

- use zope.testing.renormalizing to replace \r\n with \n?

- something else I'm not aware of :-)

cheers,

Chris

-- 
Simplistix - Content Management, Batch Processing & Python Consulting
             - http://www.simplistix.co.uk


More information about the Zope-Dev mailing list