def run(self): import tests count, failures = tests.check() if failures: print("%d out of %d failed" % (failures, count)) raise SystemExit("Test failures are listed above.")
def run(self): import tests status = tests.check() if status != 0: raise SystemExit(status)