Re: [Zope-dev] windows newslines in doctests

2010-01-11 Thread Chris Withers
Benji York wrote: Manuel 1.0.3 -- available on PyPI -- opens files in universal newline mode. I hope that fixes your newline problem Seems to have for now, I've removed my use of from zc.buildout.testing.normalize_endings and all tests still pass. I'll let you know if I hit any other issues

Re: [Zope-dev] windows newslines in doctests

2010-01-06 Thread Benji York
Manuel 1.0.3 -- available on PyPI -- opens files in universal newline mode. I hope that fixes your newline problem -- Benji York ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML

Re: [Zope-dev] windows newslines in doctests

2010-01-04 Thread Chris Withers
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

Re: [Zope-dev] windows newslines in doctests

2010-01-01 Thread Chris Withers
Benji York wrote: On Tue, Dec 29, 2009 at 2:15 PM, Chris Withers ch...@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

Re: [Zope-dev] windows newslines in doctests

2009-12-31 Thread Benji York
On Tue, Dec 29, 2009 at 2:15 PM, Chris Withers ch...@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,

Re: [Zope-dev] windows newslines in doctests

2009-12-29 Thread Chris Withers
Fred Drake wrote: It's interesting to note that Python 2.6's doctest doesn't use universal newlines, but zope.testing.doctest. Good think we haven't just deprecated zope.testing.doctest and defecated on zope.testing in the process... ...oh wait. Interestingly, the doctests I referred to

Re: [Zope-dev] windows newslines in doctests

2009-12-28 Thread Chris Withers
Benji York wrote: On Mon, Dec 14, 2009 at 9:02 AM, Chris Withers ch...@simplistix.co.uk wrote: 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... I don't think line ending problems happen

Re: [Zope-dev] windows newslines in doctests

2009-12-28 Thread Fred Drake
On Mon, Dec 28, 2009 at 4:57 PM, Chris Withers ch...@simplistix.co.uk wrote: I think if your development environment involves Windows checkouts, they happen more often that you'd like, especially when a single Windows developer doesn't have svn:eol-style set for all types that end up being

Re: [Zope-dev] windows newslines in doctests

2009-12-14 Thread Benji York
On Mon, Dec 14, 2009 at 9:02 AM, Chris Withers ch...@simplistix.co.uk wrote: 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... I don't think line ending problems happen very often. I'd be