Skip to content

Commit e823af6

Browse files
authored
Rollup merge of #74905 - lzutao:listed, r=jyn514
Avoid bool-like naming Lost in #74127 (comment)
2 parents 8892785 + 0374006 commit e823af6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/etc/test-float-parse/runtests.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -195,9 +195,8 @@ def main():
195195
global MAILBOX
196196
tests = [os.path.splitext(f)[0] for f in glob('*.rs')
197197
if not f.startswith('_')]
198-
listed = sys.argv[1:]
199-
if listed:
200-
tests = [test for test in tests if test in listed]
198+
args = sys.argv[1:]
199+
tests = [test for test in tests if test in args]
201200
if not tests:
202201
print("Error: No tests to run")
203202
sys.exit(1)

0 commit comments

Comments
 (0)