From 67718c21abd57a0ae28e77e9a6cb9e478ac4146b Mon Sep 17 00:00:00 2001 From: Shane Loretz Date: Thu, 2 May 2019 09:43:19 -0700 Subject: [PATCH] Fix flake8 violations Signed-off-by: Shane Loretz --- rclpy/test/test_create_while_spinning.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rclpy/test/test_create_while_spinning.py b/rclpy/test/test_create_while_spinning.py index 1b053bc11..8bb7d2051 100644 --- a/rclpy/test/test_create_while_spinning.py +++ b/rclpy/test/test_create_while_spinning.py @@ -54,7 +54,7 @@ def tearDown(self): def test_publish_subscribe(self): evt = threading.Event() - sub = self.node.create_subscription(BasicTypes, 'foo', lambda msg: evt.set()) + self.node.create_subscription(BasicTypes, 'foo', lambda msg: evt.set()) pub = self.node.create_publisher(BasicTypes, 'foo') pub.publish(BasicTypes()) assert evt.wait(TIMEOUT) @@ -67,7 +67,7 @@ def trigger_event(req, resp): evt.set() return resp - srv = self.node.create_service(BasicTypesSrv, 'foo', trigger_event) + self.node.create_service(BasicTypesSrv, 'foo', trigger_event) cli = self.node.create_client(BasicTypesSrv, 'foo') cli.wait_for_service() cli.call_async(BasicTypesSrv.Request()) @@ -83,7 +83,7 @@ def test_guard_condition(self): def test_timer(self): evt = threading.Event() - tmr = self.node.create_timer(TIMEOUT / 10, lambda: evt.set()) + self.node.create_timer(TIMEOUT / 10, lambda: evt.set()) assert evt.wait(TIMEOUT) def test_waitable(self):