[issue9017] doctest option flag to enable/disable some chunk of doctests?
Amaury Forgeot d'Arc
report at bugs.python.org
Wed Oct 6 13:44:55 CEST 2010
Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:
harobed, the -SKIP solution does not work. Doctest directives only apply to a single line.
After a quick search, I found two workarounds there:
http://stackoverflow.com/questions/1809037/python-doctest-skip-entire-block
- Replace >>> with >>
or
- split the docstring, and add something like "__dont_test__ = " in front of the second part; the string becomes part of a statement and won't be parsed.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9017>
_______________________________________
More information about the Python-bugs-list
mailing list