Ruby doctest

Duncan Booth duncan.booth at invalid.invalid
Mon Jun 23 03:27:40 EDT 2008


Paddy <paddy3118 at googlemail.com> wrote:

> I monitor changes to the Wikipedia doctest page, and so noticed a
> change in the Ruby implementation of doctest.
> 
> Scooting around their implementation I found that they have an !!!
> special directive that says drop into the interpreter at this point
> when testing allowing debugging in context.
> http://github.com/tablatom/rubydoctest/wikis/special-directives
> 
Whereas Python has the more wordy version which works anywhere in ordinary 
code or in doctests:

>>> import pdb; pdb.set_trace()


-- 
Duncan Booth http://kupuguy.blogspot.com



More information about the Python-list mailing list