From: Eric V. Smith Date: Wed, 23 Sep 2015 12:00:01 +0000 (-0400) Subject: Added more f-string test for empty expressions. X-Git-Tag: v3.6.0a1~1460 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=548c4d31784048d64eb11ab13652ca0d4abb6d39;p=thirdparty%2FPython%2Fcpython.git Added more f-string test for empty expressions. --- diff --git a/Lib/test/test_fstring.py b/Lib/test/test_fstring.py index 2a1a3cd36a00..10c5849cf32a 100644 --- a/Lib/test/test_fstring.py +++ b/Lib/test/test_fstring.py @@ -296,6 +296,9 @@ f'{a * x()}'""" "f'{!x:a}'", "f'{ !xr:}'", "f'{ !xr:a}'", + + "f'{!}'", + "f'{:}'", ]) def test_parens_in_expressions(self):