Пример #1
0
    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.")
Пример #2
0
    def run(self):
        import tests

        status = tests.check()
        if status != 0:
            raise SystemExit(status)