mirror of
https://github.com/python/cpython.git
synced 2024-12-24 01:05:10 +08:00
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
Block a user