mirror of https://github.com/python/cpython.git
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 @@ def test_comments(self):
|
||||||
["f'{1#}'", # error because the expression becomes "(1#)"
|
["f'{1#}'", # error because the expression becomes "(1#)"
|
||||||
"f'{3(#)}'",
|
"f'{3(#)}'",
|
||||||
"f'{#}'",
|
"f'{#}'",
|
||||||
|
"f'{)#}'", # When wrapped in parens, this becomes
|
||||||
|
# '()#)'. Make sure that doesn't compile.
|
||||||
])
|
])
|
||||||
|
|
||||||
def test_many_expressions(self):
|
def test_many_expressions(self):
|
||||||
|
|
Loading…
Reference in New Issue