Re: [Zope-dev] zope.testing 3.8.6 emits deprecation warnings from itself?

2010-01-03 Thread Benji York
On Wed, Dec 30, 2009 at 7:45 AM, Marius Gedminas wrote: > On Wed, Dec 30, 2009 at 08:58:52AM +0100, Lennart Regebro wrote: >> On Tue, Dec 29, 2009 at 23:47, Marius Gedminas wrote: >> >  * support for the INTERPRET_FOOTNOTES feature >> >> Then they should use Manuel. > > Good, so we have a migrati

Re: [Zope-dev] zope.testing 3.8.6 emits deprecation warnings from itself?

2010-01-01 Thread Lennart Regebro
On Fri, Jan 1, 2010 at 23:31, Chris Withers wrote: > Lennart Regebro wrote: >> >> zope.testing runs a lot of doctests. Lot's and lot's. In the Python 3 >> branch I've moved them over to using stdlibs doctest. There was two >> bugs that are fixed in Zopes doctest that is not fixed in Pythons >> doc

Re: [Zope-dev] zope.testing 3.8.6 emits deprecation warnings from itself?

2010-01-01 Thread Chris Withers
Marius Gedminas wrote: > It should be simple to monkey-patch this too, by setting > DocTestCase.failureException, so we can support Python 2.5 through 3.1 > >>> How mechanical can such a transformation be? Is it sufficient to >>> replace >>> >>> zope.testing.doctest.DocFileSuite('foo.txt', **kw)

Re: [Zope-dev] zope.testing 3.8.6 emits deprecation warnings from itself?

2010-01-01 Thread Chris Withers
Lennart Regebro wrote: > zope.testing runs a lot of doctests. Lot's and lot's. In the Python 3 > branch I've moved them over to using stdlibs doctest. There was two > bugs that are fixed in Zopes doctest that is not fixed in Pythons > doctest. Are there open issues for these in the python bug tra

Re: [Zope-dev] zope.testing 3.8.6 emits deprecation warnings from itself?

2009-12-30 Thread Lennart Regebro
On Wed, Dec 30, 2009 at 17:29, Marius Gedminas wrote: > The only thing needed from doctest.py, AFAIU, is a custom exception > class inheriting from AssertionError, so the test runner (which does the > colorization) can distinguish doctest errors from regular assertion > failures. Oh, so *that* is

Re: [Zope-dev] zope.testing 3.8.6 emits deprecation warnings from itself?

2009-12-30 Thread Marius Gedminas
On Wed, Dec 30, 2009 at 03:08:26PM +0100, Lennart Regebro wrote: > On Wed, Dec 30, 2009 at 13:45, Marius Gedminas wrote: > > I don't remember, exactly, I was just grepping the diffs for > > DocTestFailureException.  It's probably the bit that lets bin/test -c > > colorize things like diffs, and tr

Re: [Zope-dev] zope.testing 3.8.6 emits deprecation warnings from itself?

2009-12-30 Thread Lennart Regebro
On Wed, Dec 30, 2009 at 13:45, Marius Gedminas wrote: >> Obviously they >> should also be reported upstream, > > The word "should" meaning they haven't been? As far as I can tell, yes. > What are the bugs?  The globs thing, and allowing mixed unicode + UTF-8 > output inside doctests? Yes. And a

Re: [Zope-dev] zope.testing 3.8.6 emits deprecation warnings from itself?

2009-12-30 Thread Marius Gedminas
On Wed, Dec 30, 2009 at 08:58:52AM +0100, Lennart Regebro wrote: > On Tue, Dec 29, 2009 at 23:47, Marius Gedminas wrote: > > I don't know enough about the differences between stdlib's doctest.py > > (in its various Python 2.4/2.5/2.6 incarnations) and > > zope.testing.doctest, other than that I've

Re: [Zope-dev] zope.testing 3.8.6 emits deprecation warnings from itself?

2009-12-30 Thread Lennart Regebro
On Tue, Dec 29, 2009 at 23:47, Marius Gedminas wrote: > I don't know enough about the differences between stdlib's doctest.py > (in its various Python 2.4/2.5/2.6 incarnations) and > zope.testing.doctest, other than that I've seen diffs, they were > non-trivial, with bugfixes and new features; I'v

Re: [Zope-dev] zope.testing 3.8.6 emits deprecation warnings from itself?

2009-12-29 Thread Chris Withers
Marius Gedminas wrote: > +1 for all the changes, but AFAICS if people move from > zope.testing.doctest to stdlib's doctest they lose at least two things: > > * custom doctest exception formatting > > * support for the INTERPRET_FOOTNOTES feature > > and since zope.testing.doctest still reimp

Re: [Zope-dev] zope.testing 3.8.6 emits deprecation warnings from itself?

2009-12-29 Thread Marius Gedminas
On Tue, Dec 29, 2009 at 10:55:37PM +0100, Fabio Tranchitella wrote: > * 2009-12-29 21:54, Marius Gedminas wrote: > > * Fabio Tranchitella is working to make the zope.testing.doctest > > deprecation warning useful by doing scary things like converting > > zope.testing.doctest from a module

Re: [Zope-dev] zope.testing 3.8.6 emits deprecation warnings from itself?

2009-12-29 Thread Chris Withers
Marius Gedminas wrote: > * Meanwhile there are discussions about issues switching from old > zope.testing.doctest to stdlib's doctest with Windows and newlines. > > * I'd rather revert back the state of things as > of zope.testing 3.8.4 with the legacy zope.testing.doctestunit > im

Re: [Zope-dev] zope.testing 3.8.6 emits deprecation warnings from itself?

2009-12-29 Thread Marius Gedminas
On Tue, Dec 29, 2009 at 10:54:03PM +0200, Marius Gedminas wrote: > On Tue, Dec 29, 2009 at 04:04:34PM +, Chris Withers wrote: > > I hate DeprecationWarnings at the best of times, since no one actually > > does anything about them until whatever they're bleating about is > > actually gone anyw

Re: [Zope-dev] zope.testing 3.8.6 emits deprecation warnings from itself?

2009-12-29 Thread Fabio Tranchitella
* 2009-12-29 21:54, Marius Gedminas wrote: > * Fabio Tranchitella is working to make the zope.testing.doctest > deprecation warning useful by doing scary things like converting > zope.testing.doctest from a module into a package that has all the > code in __init__.py. He asked for a

Re: [Zope-dev] zope.testing 3.8.6 emits deprecation warnings from itself?

2009-12-29 Thread Marius Gedminas
On Tue, Dec 29, 2009 at 04:04:34PM +, Chris Withers wrote: > I hate DeprecationWarnings at the best of times, since no one actually > does anything about them until whatever they're bleating about is > actually gone anyway, but zope.testing has outdone itself. Some background, because you're

[Zope-dev] zope.testing 3.8.6 emits deprecation warnings from itself?

2009-12-29 Thread Chris Withers
Hi, I hate DeprecationWarnings at the best of times, since no one actually does anything about them until whatever they're bleating about is actually gone anyway, but zope.testing has outdone itself. Whoever introduced that warning, if you're going to do so, please solve any problems with code