From: Eric V. Smith Date: Wed, 23 Sep 2015 14:24:43 +0000 (-0400) Subject: f-strings: More tests for empty expressions along with missing closing braces. X-Git-Tag: v3.6.0a1~1459 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b2080f65544093c8f07b4ecc43fe035aeb08c8f0;p=thirdparty%2FPython%2Fcpython.git f-strings: More tests for empty expressions along with missing closing braces. --- diff --git a/Lib/test/test_fstring.py b/Lib/test/test_fstring.py index 10c5849cf32a..d6f781c846e2 100644 --- a/Lib/test/test_fstring.py +++ b/Lib/test/test_fstring.py @@ -299,6 +299,13 @@ f'{a * x()}'""" "f'{!}'", "f'{:}'", + + # We find the empty expression before the + # missing closing brace. + "f'{!'", + "f'{!s:'", + "f'{:'", + "f'{:x'", ]) def test_parens_in_expressions(self):