Skip to content

Commit b286838

Browse files
committed
Updated python tools to be cimpliant with PEP 3113
1 parent 4a5ac14 commit b286838

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tools/test_api.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2113,11 +2113,13 @@ def find_tests(base_dir, target_name, toolchain_name, app_config=None):
21132113
# Also find any COMMON paths, we'll add these later once we find all the base tests
21142114
if 'COMMON' in relative_path_parts:
21152115
if relative_path_parts[0] != 'COMMON':
2116-
def predicate(base_pred, group_pred, (name, base, group, case)):
2116+
def predicate(base_pred, group_pred, name_base_group_case):
2117+
(name, base, group, case) = name_base_group_case
21172118
return base == base_pred and group == group_pred
21182119
commons.append((functools.partial(predicate, walk_base_dir, relative_path_parts[0]), d))
21192120
else:
2120-
def predicate(base_pred, (name, base, group, case)):
2121+
def predicate(base_pred, name_base_group_case):
2122+
(name, base, group, case) = name_base_group_case
21212123
return base == base_pred
21222124
commons.append((functools.partial(predicate, walk_base_dir), d))
21232125

0 commit comments

Comments
 (0)