Skip to content

Commit

Permalink
Add failing test to demonstrate comprehension comments not respected
Browse files Browse the repository at this point in the history
  • Loading branch information
samueljsb authored and amyreese committed Apr 5, 2024
1 parent 0938c52 commit 0b71925
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/fixit/tests/rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,25 @@ class C:
None,
None,
),
( # comprehensions
"""
# lint-fixme: ExerciseReport
[... for _ in range(1)]
[
# lint-fixme: ExerciseReport
... for _ in range(1)
]
[... for _ in range(1)] # lint-fixme: ExerciseReport
[
... for _ in range(1) # lint-fixme: ExerciseReport
]
""",
None,
None,
),
):
idx += 1
content = dedent(code).encode("utf-8")
Expand Down

0 comments on commit 0b71925

Please sign in to comment.