Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion libpysal/graph/_set_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def equals(self, right):
pandas.testing.assert_series_equal(
self._adjacency, right._adjacency, check_dtype=False
)
except AssertionError:
except (AssertionError, AttributeError):
return False
return True

Expand Down
2 changes: 2 additions & 0 deletions libpysal/graph/tests/test_set_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,12 @@ def test___gt__(self):
def test___eq__(self):
assert self.distance2500 == self.distance2500.copy()
assert not self.distance2500 == self.distance2500_id # noqa: SIM201
assert not self.distance2500 == None # noqa: E711, SIM201

def test___ne__(self):
assert not self.distance2500 != self.distance2500.copy() # noqa: SIM202
assert self.distance2500 != self.distance2500_id
assert self.distance2500 != None # noqa: E711

def test___and__(self):
result = self.distance2500 & self.knn3
Expand Down
Loading