coverage.py: instead of printing the length of the skipped dictionary, print the sum of the length of lists of tests it references

This commit is contained in:
Johannes Schauer Marin Rodrigues 2022-06-04 08:50:53 +02:00
parent 51ad1426c3
commit 9ca613da0a
Signed by untrusted user: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -238,7 +238,7 @@ def main():
file=sys.stderr,
)
if skipped:
print("skipped %d:" % len(skipped), file=sys.stderr)
print("skipped %d:" % sum([len(v) for v in skipped.values()]), file=sys.stderr)
for reason, l in skipped.items():
print(f"skipped because of {reason}:", file=sys.stderr)
for t in l: