From e75376ae609878e29c77335c510262964cec1196 Mon Sep 17 00:00:00 2001 From: Lidi Zheng Date: Wed, 23 Oct 2019 16:23:56 -0700 Subject: [PATCH] Make YAPF happy again --- tools/run_tests/run_tests.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tools/run_tests/run_tests.py b/tools/run_tests/run_tests.py index ab85efa1d79..1d2c1b56033 100755 --- a/tools/run_tests/run_tests.py +++ b/tools/run_tests/run_tests.py @@ -182,9 +182,9 @@ def get_c_tests(travis, test_lang): with open('tools/run_tests/generated/tests.json') as f: js = json.load(f) return [ - tgt for tgt in js if tgt['language'] == test_lang and - platform_string() in tgt[platforms_str] and - not (travis and tgt['flaky']) + tgt for tgt in js + if tgt['language'] == test_lang and platform_string() in + tgt[platforms_str] and not (travis and tgt['flaky']) ] @@ -1637,7 +1637,8 @@ if any(language.make_options() for language in languages): # together, and is only used under gcov. All other configs should build languages individually. language_make_options = list( set([ - make_option for lang in languages + make_option + for lang in languages for make_option in lang.make_options() ]))