Skip to content

Commit d3c6f27

Browse files
committed
Make sure sorted_errors has unambiguous order for all error lists
1 parent 832f51c commit d3c6f27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -855,5 +855,5 @@ def test_it_catches_registered_errors(self):
855855

856856
def sorted_errors(errors):
857857
def key(error):
858-
return [str(e) for e in error.path], error.validator_keyword
858+
return error.path, error.schema_path
859859
return sorted(errors, key=key)

0 commit comments

Comments
 (0)