[Zope3-dev] Heads up: changing doctest API
Jim Fulton
jim at zope.com
Sat Aug 28 10:44:01 EDT 2004
DocTestSuite and DocFileSuite let you pass setUp and tearDown functions.
Previously, these took no arguments. I'm changing the api so that these
are now passed a doctest.DocTest object. The main purpose for this is
to provide access to the test globals (globs attribute). Of course,
I'll fix all of the users in the zope tree. If you are using setUp
or tearDown functions in your own tests (or ahem, books) you will need
to change them to take an argument.
Also, the names of the options for requesting diff output have changed
in doctest, and, thus, will change in Zope.
I expect to make this change today on both the trunk and the x3.0 branch
today.
Jim
--
Jim Fulton mailto:jim at zope.com Python Powered!
CTO (540) 361-1714 http://www.python.org
Zope Corporation http://www.zope.com http://www.zope.org
More information about the Zope3-dev
mailing list