Unverified Commit 368b9795 by Patrick Steinhardt Committed by GitHub

Merge pull request #5168 from tiennou/clar/fix-data-suite-count

clar: correctly account for "data" suites when counting
parents 51124a5b 4cd8dfaa
...@@ -210,7 +210,7 @@ class TestSuite(object): ...@@ -210,7 +210,7 @@ class TestSuite(object):
module.modified = True module.modified = True
def suite_count(self): def suite_count(self):
return len(self.modules) return sum(len(module.initializers) for module in self.modules.values())
def callback_count(self): def callback_count(self):
return sum(len(module.callbacks) for module in self.modules.values()) 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