mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-04 18:58:26 +00:00
[syntax errors] Stabilize version-specific unsupported syntax errors (#18522)
This commit is contained in:
parent
9f2ae1f568
commit
bf53bc4256
4 changed files with 9 additions and 17 deletions
|
@ -65,7 +65,7 @@ fn syntax_error() {
|
|||
fn unsupported_syntax_error() {
|
||||
check!(
|
||||
"match 2:\n case 1: ...",
|
||||
r#"{"preview": true, "target-version": "py39"}"#,
|
||||
r#"{"target-version": "py39"}"#,
|
||||
[ExpandedMessage {
|
||||
code: None,
|
||||
message: "SyntaxError: Cannot use `match` statement on Python 3.9 (syntax was added in Python 3.10)".to_string(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue