import doctest


def _quiet_testmod(module):
    """
    Run all of a modules doctests, not producing any output to stdout.
    Return a tuple with the number of failures and the number of tries.
    """
    finder = doctest.DocTestFinder(exclude_empty=False)
    runner = doctest.DocTestRunner(verbose=False)
    for test in finder.find(module, module.__name__):
        runner.run(test, out=lambda x: True)
    return (runner.failures, runner.tries)