Verification; Tweak itc test script, avoid duplicate linenumbers
This commit is contained in:
parent
55ea06354b
commit
d1f3ecec12
|
@ -52,7 +52,9 @@ def check(filename):
|
||||||
res = re.match(w, line)
|
res = re.match(w, line)
|
||||||
if res is None:
|
if res is None:
|
||||||
continue
|
continue
|
||||||
ret.append(int(res.group(1)))
|
linenr = int(res.group(1))
|
||||||
|
if linenr not in ret:
|
||||||
|
ret.append(linenr)
|
||||||
return ret
|
return ret
|
||||||
|
|
||||||
wanted = get_error_lines(TESTFILE)
|
wanted = get_error_lines(TESTFILE)
|
||||||
|
|
Loading…
Reference in New Issue