From 0374006d79114824d8eec020a9d771ca8cf712ff Mon Sep 17 00:00:00 2001 From: Lzu Tao Date: Wed, 29 Jul 2020 10:48:00 +0000 Subject: [PATCH] Avoid bool-like naming --- src/etc/test-float-parse/runtests.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/etc/test-float-parse/runtests.py b/src/etc/test-float-parse/runtests.py index 7106078f897cf..4d2902e986f56 100644 --- a/src/etc/test-float-parse/runtests.py +++ b/src/etc/test-float-parse/runtests.py @@ -195,9 +195,8 @@ def main(): global MAILBOX tests = [os.path.splitext(f)[0] for f in glob('*.rs') if not f.startswith('_')] - listed = sys.argv[1:] - if listed: - tests = [test for test in tests if test in listed] + args = sys.argv[1:] + tests = [test for test in tests if test in args] if not tests: print("Error: No tests to run") sys.exit(1)