[Zope-dev] Avoid deprecation warnings in the testrunner

Lennart Regebro regebro at gmail.com
Sun Dec 27 04:52:08 EST 2009


On Sun, Dec 27, 2009 at 10:44, Fabio Tranchitella <kobold at kobold.it> wrote:
> * 2009-12-25 10:23, Lennart Regebro wrote:
>> Yes, we did. But now we try to get the deprecation warnings to show up in
>> the correct place. And we could warn for the usage of some of the names,
>> but in the message explain that doctest.py is deprecated.
>
> What do you think about the attached patch (applied to the current trunk)?
> It makes the tests quite noisy (each usage of DocTestSuite and DocFileSuite
> raises a warning), but I think matches with what you wrote in the quoted
> paragraph above.

Yeah, I think that make sense. Seems a simple solution that works.
-- 
Lennart Regebro: http://regebro.wordpress.com/
Python 3 Porting: http://python-incompatibility.googlecode.com/
+33 661 58 14 64


More information about the Zope-Dev mailing list