Skip to content

Commit 871c2f0

Browse files
[conformance] Fix check for error groups that appear on a single line (#2386)
1 parent 1f8d6f8 commit 871c2f0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎conformance/src/main.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def f(): pass # E[final]
9494
9595
(
9696
{1: (1, 0), 2: (0, 1)},
97-
{"final": ([3, 4], False)}
97+
{"final": ([3, 4], ErrorMultiplicity.SINGLE)}
9898
)
9999
"""
100100
with open(test_case, "r", encoding="utf-8") as f:
@@ -131,7 +131,7 @@ def f(): pass # E[final]
131131
if groups[tag][1] != multiplicity:
132132
raise ValueError(f"Error group {tag} has inconsistent multiplicity value in {test_case}")
133133
groups[tag][0].append(i)
134-
for group, linenos in groups.items():
134+
for group, (linenos, _) in groups.items():
135135
if len(linenos) == 1:
136136
raise ValueError(f"Error group {group} only appears on a single line in {test_case}")
137137
return output, groups

0 commit comments

Comments
 (0)