Kaydet (Commit) 35a24c5a authored tarafından Eric V. Smith's avatar Eric V. Smith

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

üst 09835dcd
...@@ -186,6 +186,8 @@ f'{a * x()}'""" ...@@ -186,6 +186,8 @@ f'{a * x()}'"""
["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):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment