Commit 268a598b authored by Stefan Behnel's avatar Stefan Behnel

Avoid printing test stats when no tests have run.

parent 6bb0ee95
......@@ -581,6 +581,8 @@ class Stats(object):
self.add_time(metric, t)
def print_stats(self, out=sys.stderr):
if not self.test_times:
return
lines = ['Times:\n']
for metric, t in sorted(self.test_times.items()):
count = self.test_counts[metric]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment