is there a simple way to stop a doctest execution within its code ?
my use case is to abort the execution of part of the doc, given an arbitrary condition.
That could be: existence of a third party package or whatever.
Adding tests throughout the doctest does not look good.
Maybe it's time to implement the 'exit' builtin ? ;)
Failed example:
exit
Expected nothing
Got:
'Use Ctrl-D (i.e. EOF) to exit.'
Tarek
--
Tarek Ziadé | Association AfPy | www.afpy.org
Site personnel | http://programmation-python.org
-- http://mail.python.org/mailman/listinfo/python-list