diff --git a/tests/hacking/checks.py b/tests/hacking/checks.py index 303e2086..eaaf1be8 100644 --- a/tests/hacking/checks.py +++ b/tests/hacking/checks.py @@ -83,8 +83,8 @@ def skip_ignored_lines(func): line = physical_line.strip() if not line or line.startswith("#") or line.endswith("# noqa"): return - yield next(func(logical_line, physical_line, filename)) - + for value in func(logical_line, physical_line, filename): + yield value return wrapper