commit | 35a24c5a436a8b3ebff6cedce18084bdce2f77a3 | [log] [tgz] |
---|---|---|
author | Eric V. Smith <eric@trueblade.com> | Sun Sep 11 19:01:22 2016 -0400 |
committer | Eric V. Smith <eric@trueblade.com> | Sun Sep 11 19:01:22 2016 -0400 |
tree | 8f7ea009801b2c0f49e9d6639ffc2159b25e2deb | |
parent | 09835dcdbb8bb9c5f355ed55d2fa8c0d140ee7ee [diff] |
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 6558194..92995fd 100644 --- a/Lib/test/test_fstring.py +++ b/Lib/test/test_fstring.py
@@ -186,6 +186,8 @@ ["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):