From 548c4d31784048d64eb11ab13652ca0d4abb6d39 Mon Sep 17 00:00:00 2001 From: "Eric V. Smith" Date: Wed, 23 Sep 2015 08:00:01 -0400 Subject: [PATCH] Added more f-string test for empty expressions. --- Lib/test/test_fstring.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Lib/test/test_fstring.py b/Lib/test/test_fstring.py index 2a1a3cd36a0..10c5849cf32 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):