def count_failures(runner):
    """Count number of failures in a doctest runner.

    Code modeled after the summarize() method in doctest.
    """
    return [TestResults(f, t) for f, t in list(runner._name2ft.values()) if 0 > f ]
dataset/ETHPy150Open ipython/ipython-py3k/IPython/testing/ipunittest.py/count_failures/swapped operands of `>`