We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 295fb5b commit 0dc0f60Copy full SHA for 0dc0f60
can/message.py
@@ -96,7 +96,8 @@ def __repr__(self):
96
return "can.Message({})".format(", ".join(args))
97
98
def __eq__(self, other):
99
- return (self.arbitration_id == other.arbitration_id and
+ return (isinstance(other, self.__class__) and
100
+ self.arbitration_id == other.arbitration_id and
101
#self.timestamp == other.timestamp and
102
self.id_type == other.id_type and
103
self.dlc == other.dlc and
test/listener_test.py
@@ -167,7 +167,7 @@ def test_sql_reader(self):
167
f.close()
168
a_listener = can.SqliteWriter(f.name)
169
a_listener(generate_message(0xDADADA))
170
- sleep(0.5)
+ sleep(0.1)
171
a_listener.stop()
172
173
reader = can.SqlReader(f.name)
0 commit comments