Skip to content

Use dict.items and remove unused variables in tests - #5279

Open
Flamefire wants to merge 4 commits into
easybuilders:developfrom
Flamefire:dict-items
Open

Flamefire wants to merge 4 commits into
easybuilders:developfrom
Flamefire:dict-items

Conversation

@Flamefire

Copy link
Copy Markdown
Contributor

This resolves a few warnings generated by PyLint which make the tests a bit simpler/clearer.

E.g. stdout, stderr = self.run_main(args, raise_error=True) is used but then the variables are never used.
When reading this code again it is unclear if this is intentional

Using dict.items is shorter and makes it easier to see what the dict is made of, e.g.:

-                for key in tcs:
-                    tcname = key.split('@')[0]
-                    tcversion, generic_flags, custom_tcopts = tcs[key]  # Could be way below
+                for key, (tcversion, generic_flags, custom_tcopts) in tcs.items():
+                    tcname = key.split('@')[0]

@Flamefire
Flamefire force-pushed the dict-items branch 2 times, most recently from 1c6e3e4 to 9c610ee Compare September 16, 2026 08:45
@Flamefire
Flamefire force-pushed the dict-items branch 2 times, most recently from 790682d to 87c1dc9 Compare October 2, 2026 07:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant