'Create a new test runner.
Optional keyword arg `checker` is the `OutputChecker` that
should be used to compare the expected outputs and actual
outputs of doctest examples.
Optional keyword arg \'verbose\' prints lots of stuff if true,
only failures if false; by default, it\'s true iff \'-v\' is in
sys.argv.
Optional argument `optionflags` can be used to control how the
test runner compares expected output to actual output, and how
it displays failures.  See the documentation for `testmod` for
more information.'

def __init__(self, checker=None, verbose=None, optionflags=0):

    self._checker = (checker or OutputChecker())
    if (verbose is None):
        verbose = ('-v' in sys.argv)
    self._verbose = verbose
    self.optionflags = optionflags
    self.original_optionflags = optionflags
    self.tries = 0
    self.failures = 0
    self._name2ft = {}
    self._fakeout = _SpoofOut()
    return
