def __init__(self, checker=None, verbosity=1, optionflags=0, kbinterrupt_continue=False): DocTestRunner.__init__(self, checker, (verbosity>2), optionflags) self._verbosity = verbosity self._current_test = None self._term = TerminalController() self._stderr_term = TerminalController(sys.__stderr__) self._kbinterrupt_continue = kbinterrupt_continue
def __init__(self, optionflags, encoding): optionflags |= _unittest_reportflags BaseDocTestRunner.__init__( self, checker=OutputChecker(encoding), verbose=False, optionflags=optionflags, )
def __init__(self, verbose=False, mark_updates=False): '''Construct a new update runner''' self._mark_updates = mark_updates DocTestRunner.__init__(self, verbose=verbose)
def __init__(self, optionflags=0): optionflags |= _unittest_reportflags BaseDocTestRunner.__init__(self, verbose=False, optionflags=optionflags)