[Checkins] SVN: bobo/trunk/bobodoctestumentation/src/bobodoctestumentation/conf.py add doctest extension

Jim Fulton jim at zope.com
Tue May 26 12:55:25 EDT 2009


On May 26, 2009, at 12:02 PM, Michael Haubenwallner wrote:

> Log message for revision 100421:
>  add doctest extension


Why?  The bobo test suite includes the documentation.  The doctests in  
the documentation rely on manuel to convert some of the non-doctest  
blocks to doctest examples that set state needed by the regular  
doctests.

Note blocks ending in ".. -> varname" (or ".. -> varname strip").   
These cause a doctest example to be added that saves the dedented (and  
optionally stripped) block text in the named variable, which the  
doctests use.

The doctests would fail to pass using a normal doctest runner.

Jim

--
Jim Fulton
Zope Corporation




More information about the Checkins mailing list