Skip to content

Commit 291af86

Browse files
authored
Update virtual.rst (#975)
Assert now works without error.
1 parent 0a0c7bd commit 291af86

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

doc/interfaces/virtual.rst

+4-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,10 @@ Example
9595
bus1.send(msg1)
9696
msg2 = bus2.recv()
9797
98-
assert msg1 == msg2
98+
#assert msg1 == msg2
99+
assert msg1.arbitration_id == msg2.arbitration_id
100+
assert msg1.data == msg2.data
101+
assert msg1.timestamp != msg2.timestamp
99102
100103
101104
Bus Class Documentation

0 commit comments

Comments
 (0)