Skip to content

Commit 5a17ab3

Browse files
komawarBridgeAR
authored andcommitted
tools: rename unused variale in more pythonic way
The 'Main' function in tools/test.py file was using a variable named ``all_outcomes`` to store a value not being used. It is a best practice to name unused variables, often return values of functions/methods (as in this case) as ``_`` [1]. This just helps keep the code a bit cleaner and avoid any silly mistakes. PR-URL: #16171 Refs: [1] https://stackoverflow.com/a/5477153 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Claudio Rodriguez <cjrodr@yahoo.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
1 parent e021de3 commit 5a17ab3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/test.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1661,7 +1661,7 @@ def Main():
16611661
}
16621662
test_list = root.ListTests([], path, context, arch, mode)
16631663
unclassified_tests += test_list
1664-
(cases, unused_rules, all_outcomes) = (
1664+
(cases, unused_rules, _) = (
16651665
config.ClassifyTests(test_list, env))
16661666
if globally_unused_rules is None:
16671667
globally_unused_rules = set(unused_rules)

0 commit comments

Comments
 (0)