1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
---
source: crates/ruff_python_parser/tests/fixtures.rs
input_file: crates/ruff_python_parser/resources/inline/err/assert_empty_test.py
---
## AST
```
Module(
ModModule {
node_index: NodeIndex(None),
range: 0..7,
body: [
Assert(
StmtAssert {
node_index: NodeIndex(None),
range: 0..6,
test: Name(
ExprName {
node_index: NodeIndex(None),
range: 6..6,
id: Name(""),
ctx: Invalid,
},
),
msg: None,
},
),
],
},
)
```
## Errors
|
1 | assert
| ^ Syntax Error: Expected an expression
|