from
Pierre Rouleau <prouleau001 at sympatico dot ca>
to
Python-Projects <python-projects at lists dot logilab dot org>
subject
Re: [Python-projects] How can we disable warning for doctest support
date
Alexandre Fayolle wrote:2006/02/25 12:39
>
>>If that's the case, is there any plan to better support doctest testing in the
>>future or is there a better way for wrting doctest support than what I have
>>shown above?
>
>
> I'm not a doctest expert (never used it, to tell the truth), but the
> documentation says that testmod can be called with no argument. Does
> this do something different from what you want ?
>
>
Nope, it does exactly what I want! Should have read the Python 2.3 or
2.4 manual sooner... I started using it with Python 2.2 and the 2.2
manual was showing the call with the current module name passed to
testmod().
So I guess my question was related to Python 2.2 and earlier. In 2.3 and
2.4 you do not have the problem since doctest.testmod() with no argument
assumes that its testing the current module.
Merci!
--
Pierre Rouleau
_______________________________________________
Python-Projects mailing list
Python-Projects@lists.logilab.org
http://lists.logilab.org/mailman/listinfo/python-projects
