[Twisted-Python] What about doctest support [was: Re: Trial: The Volunteering]

Jp Calderone exarkun at divmod.com
Mon Aug 22 18:31:47 EDT 2005

On Mon, 22 Aug 2005 18:59:48 +0200, Nicola Larosa <nico at teknico.net> wrote:
>> I believe the main direction that Trial has to go in, to wit, removing
>> all reactor-spinning calls, requires first that all Twisted unit tests
>> which call wait() or deferredResult() or the like be converted to
>> instead return Deferreds.
>There's a couple of files in twisted.trial, doctest.py and tdoctest.py .
>The first looks like a patched version of the stdlib one. What about
>present and/or future support for writing tests in doctest format?

It's a mess.  I think it should be removed.  A future version of trial might have support added in a more maintainable fashion.


More information about the Twisted-Python mailing list