def count_failures(runner):
 return [TestResults(f, t) for (f, t) in runner._name2ft.values() if (f > 0)]

def count_failures ( runner ) : return [ TestResults ( f , t ) for ( f , t ) in runner . _name2ft . values ( ) if ( f > 0 ) ]
count number of failures in a doctest runner .