Skip to content

Commit

Permalink
ci: allow null compare in check-yaml-fields script
Browse files Browse the repository at this point in the history
Allow check for `None` type in check-yaml-fields.py script. It wasn't
clear from the original commit - 2ddde49 - if we purposefully didn't
want to compare `null` in the script, or it was just a typo. This will
now let us assert a field should be `null` instead of some other value,
and fail properly when it is not.
  • Loading branch information
Chris-Peterson444 committed Sep 5, 2024
1 parent 0d88424 commit 9129c83
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/check-yaml-fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ def main():
v = v[index]
if expected is None:
print(v)
else:
assert v == expected, "{!r} != {!r}".format(v, expected)
assert v == expected, "{!r} != {!r}".format(v, expected)


main()

0 comments on commit 9129c83

Please sign in to comment.