Skip to content

Commit f3991f9

Browse files
committed
Update unexpected_fails.py to allow omitting the conformant field for passing tests.
1 parent 2f008ed commit f3991f9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

conformance/src/unexpected_fails.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,11 @@
2121
except Exception as e:
2222
raise Exception(f"Error decoding {file}") from e
2323
try:
24-
previous_pass = info["conformant"] == "Pass"
2524
new_pass = info["conformance_automated"] == "Pass"
25+
if new_pass and "conformant" not in info:
26+
previous_pass = True
27+
else:
28+
previous_pass = info["conformant"] == "Pass"
2629
except KeyError as e:
2730
raise Exception(f"Missing key in {file}") from e
2831
if previous_pass != new_pass:

0 commit comments

Comments
 (0)