Skip to content

Commit e86d75f

Browse files
authored
Merge pull request libgit2#5175 from pks-t/pks/clar-fix-suite-count
clar: fix suite count
2 parents 29fe79e + 9210997 commit e86d75f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/generate.py

100755100644
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 sum(len(module.initializers) for module in self.modules.values())
213+
return sum(max(1, len(m.initializers)) for m 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)