Skip to content

Commit 0bf34e3

Browse files
committed
update snapshot
1 parent 55e0aaf commit 0bf34e3

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

crates/ruff_python_formatter/tests/snapshots/format@range_formatting__clause_header.py.snap

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
source: crates/ruff_python_formatter/tests/fixtures.rs
33
input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/range_formatting/clause_header.py
4-
snapshot_kind: text
54
---
65
## Input
76
```python
@@ -49,6 +48,14 @@ def test4(<RANGE_START> a):
4948
5049
<RANGE_START>if b + c :<RANGE_END> # trailing clause header comment
5150
print("Not formatted" )
51+
52+
def test5():
53+
x = 1
54+
<RANGE_START>try:
55+
a;
56+
finally:
57+
b
58+
<RANGE_END>
5259
```
5360
5461
## Output
@@ -96,4 +103,11 @@ if a + b: # trailing clause header comment
96103
97104
if b + c: # trailing clause header comment
98105
print("Not formatted" )
106+
107+
def test5():
108+
x = 1
109+
try:
110+
a
111+
finally:
112+
b
99113
```

0 commit comments

Comments
 (0)