Index: gc_lang/fr/modules/tests.py ================================================================== --- gc_lang/fr/modules/tests.py +++ gc_lang/fr/modules/tests.py @@ -204,12 +204,12 @@ nError += 1 if nError: print("Unexpected errors:", nError) # untested rules i = 0 - for sOpt, sLineId, sRuleId in gce.listRules(): - if sOpt != "@@@@" and sLineId not in self._aTestedRules and not re.search("^[0-9]+[sp]$|^[pd]_", sRuleId): + for _, sOpt, sLineId, sRuleId in gce.listRules(): + if sOpt != "@@@@" and sRuleId not in self._aTestedRules and not re.search("^[0-9]+[sp]$|^[pd]_", sRuleId): echo(sLineId + "/" + sRuleId, end= ", ") i += 1 if i: echo("\n[{} untested rules]".format(i)) @@ -229,11 +229,11 @@ lAllSugg = [] for dErr in aErrs: sRes = sRes[:dErr["nStart"]] + "~" * (dErr["nEnd"] - dErr["nStart"]) + sRes[dErr["nEnd"]:] sListErr += " * {sLineId} / {sRuleId} at {nStart}:{nEnd}\n".format(**dErr) lAllSugg.append("|".join(dErr["aSuggestions"])) - self._aTestedRules.add(dErr["sLineId"]) + self._aTestedRules.add(dErr["sRuleId"]) # test messages if "" in dErr["sMessage"] or "" in dErr["sMessage"]: print("\n# Line num : " + dErr["sLineId"] + \ "\n rule name: " + dErr["sRuleId"] + \ "\n message : " + dErr["sMessage"])