[Zope-dev] Avoid deprecation warnings in the testrunner

Zvezdan Petkovic zvezdan at zope.com
Thu Dec 24 09:43:38 EST 2009


On Dec 24, 2009, at 8:50 AM, Fabio Tranchitella 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, it should be "zope.testing.doctest", and I fixed it in the trunk, and this was the only failure in the ZTK.

I don't think you fixed it on the trunk.
The code now looks like this

	import doctest
	...
	        zope.testing.doctest.DocFileSuite('minmax.txt'),
	...

You did not import zope.testing.doctest, but the reference to it remains.  I don't think that's a fix.

	Zvezdan



More information about the Zope-Dev mailing list