From 5d4b8c27f1891aabd8a3d928e9a2aa24f17a5d94 Mon Sep 17 00:00:00 2001 From: Alex Bates Date: Tue, 20 Oct 2020 20:47:29 +0100 Subject: [PATCH] hotfix coverage.py bytes listing --- coverage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coverage.py b/coverage.py index e929036791..52b2bdeba7 100755 --- a/coverage.py +++ b/coverage.py @@ -86,7 +86,7 @@ if __name__ == "__main__": total = len(matched) + len(non_matched) print(f"{len(matched)}+{len(partial_matched)} / {total} functions ({(len(matched) / total) * 100:.2f}%)") - if not "--skip-sizes": + if not "--skip-sizes" in argv: function_sizes = parse_map_file() size_matched = sum(function_sizes.get(f, 0) for f in matched) size_partial_matched = sum(function_sizes.get(f, 0) for f in partial_matched)