mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-07 22:09:38 +07:00
PY-31442 Add test cases for various scenarios when f-string is terminated by a line break
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
s = f'{1 +
|
||||
2}'
|
||||
@@ -0,0 +1,2 @@
|
||||
s = f'{42:{1 +
|
||||
2}}'
|
||||
@@ -0,0 +1,2 @@
|
||||
s = f'foo{42:bar
|
||||
baz}'
|
||||
@@ -0,0 +1,2 @@
|
||||
s = f'foo
|
||||
bar'
|
||||
@@ -0,0 +1,2 @@
|
||||
s = f"{f'{1 +
|
||||
2}'}"
|
||||
@@ -0,0 +1,2 @@
|
||||
s = f"{f'{42:{1 +
|
||||
2}}'}"
|
||||
@@ -0,0 +1,2 @@
|
||||
s = f"{f'foo{42:bar
|
||||
baz}'}"
|
||||
@@ -0,0 +1,2 @@
|
||||
s = f"{f'foo
|
||||
bar'}"
|
||||
@@ -0,0 +1,2 @@
|
||||
s = f"{f'{"""
|
||||
"""}'}"
|
||||
@@ -0,0 +1,2 @@
|
||||
s = f'{"""
|
||||
"""}'
|
||||
@@ -0,0 +1,2 @@
|
||||
s = f'{foo:{"""
|
||||
"""}}'
|
||||
@@ -0,0 +1,2 @@
|
||||
s = f"{f'{foo:{"""
|
||||
"""}}'}"
|
||||
Reference in New Issue
Block a user