File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,14 +28,6 @@ def __init__(
2828 self .instance = instance
2929 self .schema = schema
3030
31- def __eq__ (self , other ):
32- if not isinstance (other , self .__class__ ):
33- return NotImplemented
34- return self ._contents () == other ._contents ()
35-
36- def __ne__ (self , other ):
37- return not self == other
38-
3931 def __repr__ (self ):
4032 return "<%s: %r>" % (self .__class__ .__name__ , self .message )
4133
Original file line number Diff line number Diff line change @@ -149,7 +149,8 @@ def test_one_error(self):
149149 validator = Draft4Validator ({"minProperties" : 2 })
150150 error , = validator .iter_errors ({})
151151 self .assertEqual (
152- exceptions .best_match (validator .iter_errors ({})), error ,
152+ exceptions .best_match (validator .iter_errors ({})).validator ,
153+ "minProperties" ,
153154 )
154155
155156 def test_no_errors (self ):
You can’t perform that action at this time.
0 commit comments