[Zope-dev] Avoid deprecation warnings in the testrunner

Lennart Regebro regebro at gmail.com
Thu Dec 24 05:40:12 EST 2009


On Thu, Dec 24, 2009 at 08:26, Fabio Tranchitella <kobold at kobold.it> wrote:
> I've tested the whole ZTK KGS using the current zope.testing's trunk and
> the only failing package was zope.minmax (already fixed in the trunk),
> because it imported zope.testing and used zope.testing.doctest, which fails
> now that doctest is a directory and not a file, as Lennnart pointed out.

It does? But the code is moved to doctest/__init__.py. That should work...
Or maybe we need to do an import doctest from zope/testing/__init__.py
for it to show up, I don't remember.

Can we avoid this error? The whole point with the deprecation is to
NOT break code. ;)

-- 
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