mirror of
https://github.com/python/cpython.git
synced 2025-07-19 09:15:34 +00:00
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
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue