From 3d18761f620a294ea6c5bff13c5994b93b29f3ed Mon Sep 17 00:00:00 2001 From: Unit 193 Date: Sat, 16 Aug 2025 07:00:33 -0400 Subject: New upstream version 1.30.3. --- scripts/run_tests.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'scripts/run_tests.py') diff --git a/scripts/run_tests.py b/scripts/run_tests.py index d1fd1f1..ebf06fa 100755 --- a/scripts/run_tests.py +++ b/scripts/run_tests.py @@ -34,13 +34,13 @@ suite = unittest.TestSuite() for test in TESTS: try: module = __import__(test) - except ImportError: - print("unable to import", test) + except Exception as exc: + sys.stderr.write(f"Failed to import {test}: {exc}\n") else: tests = unittest.defaultTestLoader.loadTestsFromModule(module) suite.addTests(tests) if __name__ == "__main__": result = unittest.TextTestRunner(verbosity=2).run(suite) - if result.errors or result.failures: + if not result.wasSuccessful(): sys.exit(1) -- cgit v1.2.3