Package nltk :: Package test :: Module doctest_driver :: Class Debugger
[hide private]
[frames] | no frames]

Class Debugger

source code

Instance Methods [hide private]
 
__init__(self, checker=None, set_trace=None) source code
 
_check_output(self, example) source code
 
_check_exception(self, example) source code
 
_print_if_not_none(self, *args) source code
 
_comment_line(self, line)
Return a commented form of the given line
source code
 
_script_from_examples(self, s) source code
 
_script_from_example(self, example, i, output) source code
 
_simulate_compile_singlemode(self, s) source code
 
_is_expr(self, stmt) source code
 
_get_optionflags(self, example) source code
 
debug(self, test, pm=False) source code
 
post_mortem(self, debugger, t) source code
Class Variables [hide private]
  runner = DocTestRunner()
  _CHK_OUT = 'if not CHECK_OUTPUT(__examples__[%d]): __set_trace...
  _CHK_EXC = 'if not CHECK_EXCEPTION(__examples__[%d]): __set_tr...
Class Variable Details [hide private]

_CHK_OUT

Value:
'if not CHECK_OUTPUT(__examples__[%d]): __set_trace__()'

_CHK_EXC

Value:
'if not CHECK_EXCEPTION(__examples__[%d]): __set_trace__()'