diff --git a/test/simplecyclic_test.py b/test/simplecyclic_test.py index 927855867..83a79de8c 100644 --- a/test/simplecyclic_test.py +++ b/test/simplecyclic_test.py @@ -176,7 +176,7 @@ def test_thread_based_cyclic_send_task(self): ) task.start() sleep(1) - self.assertTrue(on_error_mock.call_count is 1) + self.assertEqual(on_error_mock.call_count, 1) task.stop() # bus is still shutted down, but on_error returns True