Unverified Commit e86d75f3 by Patrick Steinhardt Committed by GitHub

Merge pull request #5175 from pks-t/pks/clar-fix-suite-count

clar: fix suite count
parents 29fe79e6 92109976
......@@ -210,7 +210,7 @@ class TestSuite(object):
module.modified = True
def suite_count(self):
return sum(len(module.initializers) for module in self.modules.values())
return sum(max(1, len(m.initializers)) for m in self.modules.values())
def callback_count(self):
return sum(len(module.callbacks) for module in self.modules.values())
......
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