diff options
author | Kagami Sascha Rosylight <saschanaz@outlook.com> | 2020-06-20 21:30:42 +0200 |
---|---|---|
committer | Kagami Sascha Rosylight <saschanaz@outlook.com> | 2020-06-20 21:46:28 +0200 |
commit | 90449ae147620dc88b699a1fc5c16aaa90102022 (patch) | |
tree | fd1d95be0941e5a329d8da87daaa2ca806517937 /python/servo/lints/wpt_lint.py | |
parent | 292704b1f3e0a27f8ec72c752de612c12e4b0ae9 (diff) | |
download | servo-90449ae147620dc88b699a1fc5c16aaa90102022.tar.gz servo-90449ae147620dc88b699a1fc5c16aaa90102022.zip |
Do not raise StopIteration: PEP 479
Diffstat (limited to 'python/servo/lints/wpt_lint.py')
-rw-r--r-- | python/servo/lints/wpt_lint.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/python/servo/lints/wpt_lint.py b/python/servo/lints/wpt_lint.py index a15b20bf6fb..de9327bb16c 100644 --- a/python/servo/lints/wpt_lint.py +++ b/python/servo/lints/wpt_lint.py @@ -33,11 +33,13 @@ class Lint(LintRunner): wpt_working_dir = os.path.abspath(os.path.join(WPT_PATH, "web-platform-tests")) for suite in SUITES: - files = self._get_wpt_files(suite) + files = list(self._get_wpt_files(suite)) + if not files: + continue sys.path.insert(0, wpt_working_dir) from tools.lint import lint sys.path.remove(wpt_working_dir) file_dir = os.path.abspath(os.path.join(WPT_PATH, suite)) - returncode = lint.lint(file_dir, list(files), output_format="json") + returncode = lint.lint(file_dir, files, output_format="json") if returncode: yield ("WPT Lint Tool", "", "lint error(s) in Web Platform Tests: exit status %s" % returncode) |