示例#1
0
 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
示例#2
0
 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
示例#3
0
文件: doctest.py 项目: scoder/sybil
 def __init__(self, optionflags, encoding):
     optionflags |= _unittest_reportflags
     BaseDocTestRunner.__init__(
         self,
         checker=OutputChecker(encoding),
         verbose=False,
         optionflags=optionflags,
     )
示例#4
0
 def __init__(self, verbose=False, mark_updates=False):
     '''Construct a new update runner'''
     self._mark_updates = mark_updates
     DocTestRunner.__init__(self, verbose=verbose)
示例#5
0
 def __init__(self, verbose=False, mark_updates=False):
     '''Construct a new update runner'''
     self._mark_updates = mark_updates
     DocTestRunner.__init__(self, verbose=verbose)
示例#6
0
文件: doctest.py 项目: lamby/sybil
 def __init__(self, optionflags=0):
     optionflags |= _unittest_reportflags
     BaseDocTestRunner.__init__(self,
                                verbose=False,
                                optionflags=optionflags)