Skip to content

Commit 368b979

Browse files
authored
Merge pull request libgit2#5168 from tiennou/clar/fix-data-suite-count
clar: correctly account for "data" suites when counting
2 parents 51124a5 + 4cd8dfa commit 368b979

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)