def summarize(self):
        self.printErrors()
        self.writeSep2()
        run = self.testsRun
        self.writeln("Ran %d test%s in %.3fs" %
                            (run, run == 1 and "" or "s", self._timeTaken))
        self.writeln()
        if not self.wasSuccessful():
            self.writeErr("FAILED (")
            failed, errored = map(len, (self.failures, self.errors))
            if failed:
                self.writeErr("failures=%d" % failed)
            if errored:
                if failed: self.writeErr(", ")
                self.writeErr("errors=%d" % errored)
            self.writelnErr(")")
        else:
            self.writelnErr("OK")
dataset/ETHPy150Open skyostil/tracy/src/generator/Cheetah/Tests/unittest_local_copy.py/_TextTestResult.summarize/original