File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -268,7 +268,7 @@ def _continue_skip_next_lines(
268268 if _noqa_comment_line_re .fullmatch (line_content [line_no - 1 ]):
269269 # Find next non-empty line
270270 next_line_no = line_no
271- while next_line_no < len (line_content ) and line_content [next_line_no ].strip ():
271+ while next_line_no < len (line_content ) and not line_content [next_line_no ].strip ():
272272 next_line_no += 1
273273 if next_line_no >= len (line_content ):
274274 continue
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ def test_playbook_noqa2(default_text_runner: RunFromText) -> None:
6666
6767def test_var_noqa (default_text_runner : RunFromText ) -> None :
6868 """Check that noqa is properly taken into account on vars and tasks."""
69- results = default_text_runner .run ("examples/playbooks/vars/noqa_multiline.yml" )
69+ results = default_text_runner .run (Path ( "examples/playbooks/vars/noqa_multiline.yml" ) )
7070 # Should raise no error at "SOME_VAR".
7171 assert len (results ) == 0
7272
You can’t perform that action at this time.
0 commit comments