f-strings: More tests for empty expressions along with missing closing braces.

This commit is contained in:
Eric V. Smith 2015-09-23 10:24:43 -04:00
parent 548c4d3178
commit b2080f6554
1 changed files with 7 additions and 0 deletions

View File

@ -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):