Skip to content

Commit ca5b34f

Browse files
committed
clean up test names
1 parent 7ccbc74 commit ca5b34f

11 files changed

+10
-10
lines changed

crates/ruff_python_parser/src/parser/statement.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -2588,28 +2588,28 @@ impl<'src> Parser<'src> {
25882588
// before 3.9 but avoid false positives on examples like the `@_` "identity function hack"
25892589
// or the "eval hack" called out in the PEP.
25902590

2591-
// test_ok decorator_expression_dotted_ident_before_py39
2591+
// test_ok decorator_expression_dotted_ident_py38
25922592
// # parse_options: { "target-version": "3.8" }
25932593
// @buttons.clicked.connect
25942594
// def spam(): ...
25952595

2596-
// test_ok decorator_expression_identity_hack_before_py39
2596+
// test_ok decorator_expression_identity_hack_py38
25972597
// # parse_options: { "target-version": "3.8" }
25982598
// def _(x): return x
25992599
// @_(buttons[0].clicked.connect)
26002600
// def spam(): ...
26012601

2602-
// test_ok decorator_expression_eval_hack_before_py39
2602+
// test_ok decorator_expression_eval_hack_py38
26032603
// # parse_options: { "target-version": "3.8" }
26042604
// @eval("buttons[0].clicked.connect")
26052605
// def spam(): ...
26062606

2607-
// test_ok decorator_expression_after_py39
2607+
// test_ok decorator_expression_py39
26082608
// # parse_options: { "target-version": "3.9" }
26092609
// @buttons[0].clicked.connect
26102610
// def spam(): ...
26112611

2612-
// test_err decorator_expression_before_py39
2612+
// test_err decorator_expression_py38
26132613
// # parse_options: { "target-version": "3.8" }
26142614
// @buttons[0].clicked.connect
26152615
// def spam(): ...
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
source: crates/ruff_python_parser/tests/fixtures.rs
3-
input_file: crates/ruff_python_parser/resources/inline/err/decorator_expression_before_py39.py
3+
input_file: crates/ruff_python_parser/resources/inline/err/decorator_expression_py38.py
44
---
55
## AST
66

Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
source: crates/ruff_python_parser/tests/fixtures.rs
3-
input_file: crates/ruff_python_parser/resources/inline/ok/decorator_expression_dotted_ident_before_py39.py
3+
input_file: crates/ruff_python_parser/resources/inline/ok/decorator_expression_dotted_ident_py38.py
44
---
55
## AST
66

Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
source: crates/ruff_python_parser/tests/fixtures.rs
3-
input_file: crates/ruff_python_parser/resources/inline/ok/decorator_expression_eval_hack_before_py39.py
3+
input_file: crates/ruff_python_parser/resources/inline/ok/decorator_expression_eval_hack_py38.py
44
---
55
## AST
66

Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
source: crates/ruff_python_parser/tests/fixtures.rs
3-
input_file: crates/ruff_python_parser/resources/inline/ok/decorator_expression_identity_hack_before_py39.py
3+
input_file: crates/ruff_python_parser/resources/inline/ok/decorator_expression_identity_hack_py38.py
44
---
55
## AST
66

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
source: crates/ruff_python_parser/tests/fixtures.rs
3-
input_file: crates/ruff_python_parser/resources/inline/ok/decorator_expression_after_py39.py
3+
input_file: crates/ruff_python_parser/resources/inline/ok/decorator_expression_py39.py
44
---
55
## AST
66

0 commit comments

Comments
 (0)