[Concept,13/22] buildman: Mark unused arguments in test.py

Message ID 20260106142834.2511220-14-sjg@u-boot.org
State New
Headers
Series buildman: Clean up test.py for pylint compliance |

Commit Message

Simon Glass Jan. 6, 2026, 2:28 p.m. UTC
  From: Simon Glass <simon.glass@canonical.com>

Prefix unused arguments with underscore to indicate they are
intentionally unused in mock functions, fixing pylint W0613 warnings.

Co-developed-by: Claude <noreply@anthropic.com>
Signed-off-by: Simon Glass <simon.glass@canonical.com>
---

 tools/buildman/test.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
  

Patch

diff --git a/tools/buildman/test.py b/tools/buildman/test.py
index 75b10a1d219..365a35e16a2 100644
--- a/tools/buildman/test.py
+++ b/tools/buildman/test.py
@@ -204,7 +204,7 @@  class TestBuild(unittest.TestCase):
     def tearDown(self):
         shutil.rmtree(self.base_dir)
 
-    def make(self, commit, brd, stage, *args, **kwargs):
+    def make(self, commit, brd, _stage, *_args, **_kwargs):
         """Mock make function for testing build output"""
         result = command.CommandResult()
         boardnum = int(brd.target[-1])
@@ -868,7 +868,7 @@  class TestBuild(unittest.TestCase):
             self.valid_pids = [pid for pid in self.valid_pids
                                if pid != self.finish_pid]
 
-    def kill(self, pid, signal):
+    def kill(self, pid, _signal):
         """Mock kill function that validates process IDs"""
         if pid not in self.valid_pids:
             raise OSError('Invalid PID')