[docs] [issue15629] Add to regrtest the ability to run Lib and Doc doctests
R. David Murray
report at bugs.python.org
Mon Sep 17 16:46:50 CEST 2012
R. David Murray added the comment:
We should improve the unittest help, then :) I will also note that the couple of times I tried it I couldn't figure out how to use the regrtest test selection :)
What we probably need for regrtest is a way to pass through a "selection string" from the regrtest command line to the unittest test discovery, and then run the selected tests under regrtest control. The same could apply to Sphinx doctests and module doctests. This may require adding APIs to those packages (unittest may already have the necessary API).
I think the Sphinx case is the one that will take the most work to accomplish, but I also think it is worth the effort to do that rather than adding CPython-specific stuff to regrtest.
Python tracker <report at bugs.python.org>
More information about the docs