From: Eric V. Smith Date: Sun, 11 Sep 2016 23:01:22 +0000 (-0400) Subject: Add another f-string comment test, to make sure # are being caught in the right place. X-Git-Tag: v3.6.0b1~20 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=35a24c5a436a8b3ebff6cedce18084bdce2f77a3;p=thirdparty%2FPython%2Fcpython.git Add another f-string comment test, to make sure # are being caught in the right place. --- diff --git a/Lib/test/test_fstring.py b/Lib/test/test_fstring.py index 655819425d13..92995fd83e38 100644 --- a/Lib/test/test_fstring.py +++ b/Lib/test/test_fstring.py @@ -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):