[Concept,09/22] buildman: Use set comprehension in test.py

Message ID 20260106142834.2511220-10-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>

Use set comprehension instead of set() with list comprehension to
fix pylint R1718 warning.

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

 tools/buildman/test.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Patch

diff --git a/tools/buildman/test.py b/tools/buildman/test.py
index 8b015e22090..e59c623f6bf 100644
--- a/tools/buildman/test.py
+++ b/tools/buildman/test.py
@@ -712,7 +712,7 @@  class TestBuild(unittest.TestCase):
         build.commits = self.commits
         build.commit_count = len(commits)
         result = set(build._get_output_space_removals())
-        expected = set([os.path.join(base_dir, f) for f in to_remove])
+        expected = {os.path.join(base_dir, f) for f in to_remove}
         self.assertEqual(expected, result)
 
     def test_adjust_cfg_nop(self):