Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions conformance/src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def f(): pass # E[final]

(
{1: (1, 0), 2: (0, 1)},
{"final": ([3, 4], False)}
{"final": ([3, 4], ErrorMultiplicity.SINGLE)}
)
"""
with open(test_case, "r", encoding="utf-8") as f:
Expand Down Expand Up @@ -131,7 +131,7 @@ def f(): pass # E[final]
if groups[tag][1] != multiplicity:
raise ValueError(f"Error group {tag} has inconsistent multiplicity value in {test_case}")
groups[tag][0].append(i)
for group, linenos in groups.items():
for group, (linenos, _) in groups.items():
if len(linenos) == 1:
raise ValueError(f"Error group {group} only appears on a single line in {test_case}")
return output, groups
Expand Down
Loading