A driver for testing interactive python examples in text files and
docstrings. This doctest driver performs three functions:
A number of other flags can be given; call the driver with the
`--help` option for a complete list.
|
|
|
|
|
|
|
|
|
find_module_from_filename(filename)
Given a filename, return a tuple `(basedir, module)`, where `module`
is the module's name, and `basedir` is the directory it should be
loaded from (this directory should be added to the path to import
it). |
source code
|
|
|
|
|
|
|
debug(names,
optionflags,
verbosity,
pm=True) |
source code
|
|
|
|
|
|
|
root_dir = u' /Volumes/Data/nltk '
|
|
CHECK_OPT = <Option at 0x7639f30: --check>
|
|
UPDATE_OPT = <Option at 0x7640058: -u/--update>
|
|
DEBUG_OPT = <Option at 0x7640288: --debug>
|
|
VERBOSE_OPT = <Option at 0x76405d0: -v/--verbose>
|
|
QUIET_OPT = <Option at 0x7640508: -q/--quiet>
|
|
UDIFF_OPT = <Option at 0x7640580: -d/--udiff>
|
|
CDIFF_OPT = <Option at 0x7640800: --cdiff>
|
|
NDIFF_OPT = <Option at 0x7640648: --ndiff>
|
|
COVERAGE_OPT = <Option at 0x7640670: --coverage>
|
|
ELLIPSIS_OPT = <Option at 0x7640698: --ellipsis>
|
|
NORMWS_OPT = <Option at 0x76406e8: --normalize_whitespace>
|