def _getSummary(self):
        """
        Return a formatted count of tests status results.
        """
        summaries = []
        for stat in ("skips", "expectedFailures", "failures", "errors",
                     "unexpectedSuccesses"):
            num = len(getattr(self, stat))
            if num:
                summaries.append('%s=%d' % (stat, num))
        if self.successes:
            summaries.append('successes=%d' % (self.successes,))
        summary = (summaries and ' (' + ', '.join(summaries) + ')') or ''
        return summary

        Return a formatted count of tests status results.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/trial/reporter.py