From c7559e305eebcbc4dfc8856ca0a0f53f8b2f58d1 Mon Sep 17 00:00:00 2001 From: Johannes Schauer Marin Rodrigues Date: Sun, 20 Aug 2023 08:03:48 +0200 Subject: [PATCH] coverage.py: move print of failed tests to the end --- coverage.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/coverage.py b/coverage.py index fe1ca87..e26f2fa 100755 --- a/coverage.py +++ b/coverage.py @@ -432,11 +432,6 @@ def main(): print(f"skipped because of {reason}:", file=sys.stderr) for t in l: print(f" {t}", file=sys.stderr) - if failed: - print("failed %d:" % len(failed), file=sys.stderr) - for f in failed: - print(f, file=sys.stderr) - exit(1) if len(time_per_test) > 1: print_time_per_test(time_per_test) if len(acc_time_per_test) > 1: @@ -447,6 +442,11 @@ def main(): }, "accumulated test", ) + if failed: + print("failed %d:" % len(failed), file=sys.stderr) + for f in failed: + print(f, file=sys.stderr) + exit(1) if __name__ == "__main__":