File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -181,7 +181,7 @@ def equals(self, right):
181
181
pandas .testing .assert_series_equal (
182
182
self ._adjacency , right ._adjacency , check_dtype = False
183
183
)
184
- except AssertionError :
184
+ except ( AssertionError , AttributeError ) :
185
185
return False
186
186
return True
187
187
Original file line number Diff line number Diff line change @@ -99,10 +99,12 @@ def test___gt__(self):
99
99
def test___eq__ (self ):
100
100
assert self .distance2500 == self .distance2500 .copy ()
101
101
assert not self .distance2500 == self .distance2500_id # noqa: SIM201
102
+ assert not self .distance2500 == None # noqa: E711, SIM201
102
103
103
104
def test___ne__ (self ):
104
105
assert not self .distance2500 != self .distance2500 .copy () # noqa: SIM202
105
106
assert self .distance2500 != self .distance2500_id
107
+ assert self .distance2500 != None # noqa: E711
106
108
107
109
def test___and__ (self ):
108
110
result = self .distance2500 & self .knn3
You can’t perform that action at this time.
0 commit comments