Fix formatter StmtTry test (#5568)

For some reason this didn't turn up on CI before

CC @michareiser this is the fix for the error you had
This commit is contained in:
konsti 2023-07-06 20:23:53 +02:00 committed by GitHub
parent 3650aaa8b3
commit 5e5a96ca28
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -95,6 +95,16 @@ else:
# before finally
finally:
...
# try and try star are statements with body
# Minimized from https://github.com/python/cpython/blob/99b00efd5edfd5b26bf9e2a35cbfc96277fdcbb1/Lib/getpass.py#L68-L91
try:
try:
pass
finally:
print(1) # issue7208
except A:
pass
```
## Output
@ -200,6 +210,16 @@ else:
# before finally
finally:
...
# try and try star are statements with body
# Minimized from https://github.com/python/cpython/blob/99b00efd5edfd5b26bf9e2a35cbfc96277fdcbb1/Lib/getpass.py#L68-L91
try:
try:
pass
finally:
print(1) # issue7208
except A:
pass
```