[TIP] Doctest or unitest?
Benji York
benji at benjiyork.com
Wed Mar 7 08:15:44 PST 2007
Michael Foord wrote:
> I find doctests 'visually noisy' (littered with '>>>' and '...')
For non-examples in doctests I've been involved in some discussions
about allowing the inclusion of sections with "just code". That way if
you have some sort of support functionality in a doctest (as opposed to
the test's setUp function) you won't have to use prompts when there
aren't any actual examples happening.
--
Benji York
http://benjiyork.com
More information about the testing-in-python
mailing list