[bitbake-devel] [selftest][PATCH V1 3/5] bitbake: tests: Remove empty assignments from event tests

Jair Gonzalez jair.de.jesus.gonzalez.plascencia at linux.intel.com
Thu Aug 17 20:40:52 UTC 2017


Remove assignments from non-returning calls.

Signed-off-by: Jair Gonzalez <jair.de.jesus.gonzalez.plascencia at linux.intel.com>
---
 lib/bb/tests/event.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/lib/bb/tests/event.py b/lib/bb/tests/event.py
index f11fda5..036fd7e 100644
--- a/lib/bb/tests/event.py
+++ b/lib/bb/tests/event.py
@@ -240,8 +240,8 @@ class EventHandlingTest(unittest.TestCase):
                          expected)
 
         # unregister handler and register it only for OperationStarted
-        result = bb.event.remove("event_handler1",
-                                 self._test_process.event_handler1)
+        bb.event.remove("event_handler1",
+                        self._test_process.event_handler1)
         mask = ["bb.event.OperationStarted"]
         result = bb.event.register("event_handler1",
                                    self._test_process.event_handler1,
@@ -254,8 +254,8 @@ class EventHandlingTest(unittest.TestCase):
                          expected)
 
         # unregister handler and register it only for OperationCompleted
-        result = bb.event.remove("event_handler1",
-                                 self._test_process.event_handler1)
+        bb.event.remove("event_handler1",
+                        self._test_process.event_handler1)
         mask = ["bb.event.OperationCompleted"]
         result = bb.event.register("event_handler1",
                                    self._test_process.event_handler1,
-- 
2.7.4




More information about the bitbake-devel mailing list