Skip to content

Commit

Permalink
fix a fragile test and improve SyncNode eq
Browse files Browse the repository at this point in the history
  • Loading branch information
Olivier committed Sep 17, 2023
1 parent edbd481 commit 8041675
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions asyncua/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -660,6 +660,8 @@ def __init__(self, tloop: ThreadLoop, aio_node: node.Node):
self.tloop = tloop

def __eq__(self, other):
if not isinstance(other, SyncNode):
return False
return other is not None and self.aio_obj == other.aio_obj

def __ne__(self, other):
Expand Down

0 comments on commit 8041675

Please sign in to comment.