test-suite: fixed sample regexs factory counting of line number (if it errors, the line number showing in error line was incorrect, because of missing increment)

pull/3948/head
sebres 2025-03-04 14:27:21 +01:00
parent c035428535
commit cf9c8f1e9b
1 changed files with 1 additions and 0 deletions

View File

@ -205,6 +205,7 @@ def testSampleRegexsFactory(name, basedir):
raise ValueError("%s: %s:%i" %
(e, logFile.getFileName(), lnnum))
line = next(logFile)
lnnum += 1
elif ignoreBlock or line.startswith("#") or not line.strip():
continue
else: # pragma: no cover - normally unreachable