]> granicus.if.org Git - python/commitdiff
Added more f-string test for empty expressions.
authorEric V. Smith <eric@trueblade.com>
Wed, 23 Sep 2015 12:00:01 +0000 (08:00 -0400)
committerEric V. Smith <eric@trueblade.com>
Wed, 23 Sep 2015 12:00:01 +0000 (08:00 -0400)
Lib/test/test_fstring.py

index 2a1a3cd36a00627a0b6243a69ad01404f619ffbf..10c5849cf32a69efbccb9a741adadaa38f9def32 100644 (file)
@@ -296,6 +296,9 @@ f'{a * x()}'"""
                              "f'{!x:a}'",
                              "f'{ !xr:}'",
                              "f'{ !xr:a}'",
+
+                             "f'{!}'",
+                             "f'{:}'",
                              ])
 
     def test_parens_in_expressions(self):