From efdc1e7cad2bcadd00ed699a4299d1dd1f347cff Mon Sep 17 00:00:00 2001 From: Frank Smit Date: Mon, 13 Jul 2015 16:58:06 +0200 Subject: [PATCH] Use list comprehension instead of filter+lambda. --- tests/runner.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/runner.py b/tests/runner.py index 8586e6a..6096442 100644 --- a/tests/runner.py +++ b/tests/runner.py @@ -40,9 +40,9 @@ def run_tests(include=[], exclude=[]): tests = get_tests() if include: - tests = filter(lambda n: n[0] in include, tests) + tests = [n for n in tests if n[0] in exclude] if exclude: - tests = filter(lambda n: not n[0] in exclude, tests) + tests = [n for n in tests if not n[0] in exclude] runner([n[1] for n in tests])