f-strings: More tests for empty expressions along with missing closing braces.
This commit is contained in:
parent
548c4d3178
commit
b2080f6554
|
@ -299,6 +299,13 @@ f'{a * x()}'"""
|
|||
|
||||
"f'{!}'",
|
||||
"f'{:}'",
|
||||
|
||||
# We find the empty expression before the
|
||||
# missing closing brace.
|
||||
"f'{!'",
|
||||
"f'{!s:'",
|
||||
"f'{:'",
|
||||
"f'{:x'",
|
||||
])
|
||||
|
||||
def test_parens_in_expressions(self):
|
||||
|
|
Loading…
Reference in New Issue