From 8f04f53dd847896f49a9bc367bb7269984ebdb6e Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Thu, 26 Dec 2013 13:46:15 +0100 Subject: Removed a few gratuitous lambdas. --- tests/runtests.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'tests') diff --git a/tests/runtests.py b/tests/runtests.py index 5f39eef400..3998a7bf92 100755 --- a/tests/runtests.py +++ b/tests/runtests.py @@ -154,12 +154,10 @@ def setup(verbosity, test_labels): if not test_labels: module_found_in_labels = True else: - match = lambda label: ( - module_label == label or # exact match - module_label.startswith(label + '.') # ancestor match - ) - - module_found_in_labels = any(match(l) for l in test_labels_set) + module_found_in_labels = any( + # exact match or ancestor match + module_label == label or module_label.startswith(label + '.') + for label in test_labels_set) if module_found_in_labels: if verbosity >= 2: -- cgit v1.3