Skip to content

Commit

Permalink
Fix test cases with syntax errors
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvmanila committed Jun 18, 2024
1 parent 0604013 commit 085e9a4
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions crates/ruff_linter/src/rules/pyflakes/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2413,7 +2413,7 @@ mod tests {
fn used_in_lambda() {
flakes(
r"import fu;
lambda: fu
lambda: fu
",
&[],
);
Expand All @@ -2432,7 +2432,7 @@ mod tests {
fn used_in_slice_obj() {
flakes(
r#"import fu;
"meow"[::fu]
"meow"[::fu]
"#,
&[],
);
Expand Down Expand Up @@ -3039,16 +3039,6 @@ mod tests {
&[],
);

flakes(
r#"
from interior import decorate
@decorate('value", &[]);
def f():
return "hello"
"#,
&[],
);

flakes(
r#"
@decorate
Expand Down

0 comments on commit 085e9a4

Please sign in to comment.