AW: [Zope3-dev] super-mini proposal for doctestunit.py

Roger ineichen dev at projekt01.ch
Sat May 8 14:52:02 EDT 2004


Garrett Smith wrote:
> Gesendet: Samstag, 8. Mai 2004 20:20
> An: zope3-dev at zope.org
> Betreff: [Zope3-dev] super-mini proposal for doctestunit.py
> 
> 
> We're making extensive use of doctests and have copied and pasted the 
> code from zope/testing/doctestunit.py because it's unusable 
> outside its 
> package.
> 
> I'd like to make the following change, which opens up the 
> function for 
> general use:
> 
> 90c90,98
> < def DocFileSuite(*paths):
> ---
>  > def DocFileSuite(package, *paths):
>  >     """Creates a suite of doctest files.
>  >
>  >     package is the source package containing the doctest files.
>  >
>  >     Each subsequent argument is a string specifying the 
> file name of the
>  >     doctest relative to the package.
>  >     """
>  >
> 99c107
> <     dir = os.path.split(__file__)[0]
> ---
>  >     dir = os.path.split(package.__file__)[0]
> 
> This change has no impact on the Zope core, but I wanted to 
> check with 
> the list in case it would break anyone's exsiting testing.

OK, then we can use the Zope3 DocFileSuite and can get rip of
our copies. ;-)

Thanks 
Roger

>   -- Garrett
> 
> 
> 
> _______________________________________________
> Zope3-dev mailing list
> Zope3-dev at zope.org
> Unsub: 
> http://mail.zope.org/mailman/options/zope3-> dev/dev%40projekt01.ch
> 
> 




More information about the Zope3-dev mailing list