Skip to content

Commit b48471a

Browse files
komawarMylesBorins
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 257ece2 commit b48471a

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
@@ -1578,7 +1578,7 @@ def Main():
15781578
}
15791579
test_list = root.ListTests([], path, context, arch, mode)
15801580
unclassified_tests += test_list
1581-
(cases, unused_rules, all_outcomes) = (
1581+
(cases, unused_rules, _) = (
15821582
config.ClassifyTests(test_list, env))
15831583
if globally_unused_rules is None:
15841584
globally_unused_rules = set(unused_rules)

0 commit comments

Comments
 (0)