Skip to content

Commit 7ac029a

Browse files
Flip to zip(..., strict=True)
Even though this is asserted above, we ought to keep this check around.
1 parent 274cc4c commit 7ac029a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test_validate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ def check_compilation_errors(validator: protovalidate.Validator, msg: message.Me
238238
def _compare_violations(actual: list[rules.Violation], expected: list[rules.Violation]):
239239
"""Compares two lists of violations. The violations are expected to be in the expected order also."""
240240
assert len(actual) == len(expected)
241-
for a, e in zip(actual, expected, strict=False):
241+
for a, e in zip(actual, expected, strict=True):
242242
assert a.proto.message == e.proto.message
243243
assert a.proto.rule_id == e.proto.rule_id
244244
assert a.proto.for_key == e.proto.for_key

0 commit comments

Comments
 (0)