From b286838ebf7c193c5264def2abb50c0dd0f61814 Mon Sep 17 00:00:00 2001 From: Cruz Monrreal II Date: Tue, 10 Apr 2018 13:37:47 -0500 Subject: [PATCH] Updated python tools to be cimpliant with PEP 3113 --- tools/test_api.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/test_api.py b/tools/test_api.py index aab28a4db2..033c72adea 100644 --- a/tools/test_api.py +++ b/tools/test_api.py @@ -2113,11 +2113,13 @@ def find_tests(base_dir, target_name, toolchain_name, app_config=None): # Also find any COMMON paths, we'll add these later once we find all the base tests if 'COMMON' in relative_path_parts: if relative_path_parts[0] != 'COMMON': - def predicate(base_pred, group_pred, (name, base, group, case)): + def predicate(base_pred, group_pred, name_base_group_case): + (name, base, group, case) = name_base_group_case return base == base_pred and group == group_pred commons.append((functools.partial(predicate, walk_base_dir, relative_path_parts[0]), d)) else: - def predicate(base_pred, (name, base, group, case)): + def predicate(base_pred, name_base_group_case): + (name, base, group, case) = name_base_group_case return base == base_pred commons.append((functools.partial(predicate, walk_base_dir), d))