summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2013-12-26 13:46:15 +0100
committerAymeric Augustin <aymeric.augustin@m4x.org>2013-12-26 14:03:50 +0100
commit8f04f53dd847896f49a9bc367bb7269984ebdb6e (patch)
tree9ff9f1ee72a51cf4796eab081b81c9db7194c661 /tests
parent4e7aa573ec3b9c8e0784db9013dbc31b6c3eaac5 (diff)
Removed a few gratuitous lambdas.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/runtests.py10
1 files changed, 4 insertions, 6 deletions
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: