[Zope-dev] Avoid deprecation warnings in the testrunner
Lennart Regebro
regebro at gmail.com
Fri Dec 25 01:32:35 EST 2009
On Thu, Dec 24, 2009 at 14:50, Fabio Tranchitella <kobold at kobold.it> wrote:
> I don't think we can avoid the error, and to be honest I consider the code
> in zope.minmax to be wrong.
>
> """
> import zope.testing
> x = zope.testing.doctest.DocTestFile(...
> """
>
> The import is wrong
No, that's perferctly correct code and not wrong in any way.
What if we hide the warning during the __init__.py import. Will it
show up the next time, then?
or
Maybe we can add deprecations only for the major names in doctest.py?
That would still raise an error everytime you use it, but only when
you import a name, not the module.
--
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