Skip to content

Commit 4cd8dfa

Browse files
committed
clar: correctly account for "data" suites when counting
Failing to do that makes clar miss the last of the suites, as all duplicated "data" would have not been accounted for.
1 parent f92d495 commit 4cd8dfa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/generate.py

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ def disable(self, excluded):
210210
module.modified = True
211211

212212
def suite_count(self):
213-
return len(self.modules)
213+
return sum(len(module.initializers) for module in self.modules.values())
214214

215215
def callback_count(self):
216216
return sum(len(module.callbacks) for module in self.modules.values())

0 commit comments

Comments
 (0)