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
|
|
|
|
|
|
|
| run(names,
optionflags,
verbosity,
kbinterrupt_continue) |
source code
|
|
|
|
| debug(names,
optionflags,
verbosity,
pm=True) |
source code
|
|
|
|
|
|
|
|
|
|
root_dir = '/Users/sb/Documents/workspace/nltk'
|
|
|
COMPILER_FLAGS = 8192
|
|
|
CHECK_OPT = <Option at 0x15657120: --check>
|
|
|
UPDATE_OPT = <Option at 0x3687418: -u/--update>
|
|
|
DEBUG_OPT = <Option at 0x3687e68: --debug>
|
|
|
VERBOSE_OPT = <Option at 0x3687f30: -v/--verbose>
|
|
|
QUIET_OPT = <Option at 0x3687be8: -q/--quiet>
|
|
|
UDIFF_OPT = <Option at 0x36874e0: -d/--udiff>
|
|
|
CDIFF_OPT = <Option at 0x3687738: --cdiff>
|
|
|
NDIFF_OPT = <Option at 0x36876c0: --ndiff>
|
|
|
COVERAGE_OPT = <Option at 0x36877d8: --coverage>
|
|
|
CONTINUE_OPT = <Option at 0x36878c8: --continue>
|
|
|
ELLIPSIS_OPT = <Option at 0x3687918: --ellipsis>
|
|
|
NORMWS_OPT = <Option at 0x3687e18: --normalize_whitespace>
|