[Zope-dev] windows newslines in doctests

Chris Withers chris at simplistix.co.uk
Mon Jan 4 03:55:41 EST 2010


Benji York wrote:
> 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.

Easy way to test:

- create a doctest file on linux
- run unix2dos on it
- try runnng the test

Or, better yet, in Manuel's tests, have a file with svn:eol-style *not* 
set and make sure it has Windows line endings... or even manually write 
such a file as part of the Manuel tests...

cheers,

Chris

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


More information about the Zope-Dev mailing list