From 8041675070e0c4cbeb435ef498d47c341b067d28 Mon Sep 17 00:00:00 2001 From: Olivier Date: Sun, 17 Sep 2023 16:39:07 +0200 Subject: [PATCH] fix a fragile test and improve SyncNode eq --- asyncua/sync.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/asyncua/sync.py b/asyncua/sync.py index f19fe1b9f..a95b76252 100644 --- a/asyncua/sync.py +++ b/asyncua/sync.py @@ -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):