Skip to content

Commit e0bb245

Browse files
authored
Fix SyntaxWarning in SimpleCyclicSendTaskTest (#830)
Equality should be compared via == not the "is" operator. This is a SyntaxWarning on Python 3.8+
1 parent 3d914c6 commit e0bb245

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/simplecyclic_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ def test_thread_based_cyclic_send_task(self):
176176
)
177177
task.start()
178178
sleep(1)
179-
self.assertTrue(on_error_mock.call_count is 1)
179+
self.assertEqual(on_error_mock.call_count, 1)
180180
task.stop()
181181

182182
# bus is still shutted down, but on_error returns True

0 commit comments

Comments
 (0)