Add another f-string comment test, to make sure # are being caught in the right place.
This commit is contained in:
parent
09835dcdbb
commit
35a24c5a43
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue