Add another f-string comment test, to make sure # are being caught in the right place.

This commit is contained in:
Eric V. Smith 2016-09-11 19:01:22 -04:00
parent 09835dcdbb
commit 35a24c5a43
1 changed files with 2 additions and 0 deletions

View File

@ -186,6 +186,8 @@ f'{a * x()}'"""
["f'{1#}'", # error because the expression becomes "(1#)"
"f'{3(#)}'",
"f'{#}'",
"f'{)#}'", # When wrapped in parens, this becomes
# '()#)'. Make sure that doesn't compile.
])
def test_many_expressions(self):