diff options
author | Eric V. Smith <eric@trueblade.com> | 2015-09-23 14:24:43 (GMT) |
---|---|---|
committer | Eric V. Smith <eric@trueblade.com> | 2015-09-23 14:24:43 (GMT) |
commit | b2080f65544093c8f07b4ecc43fe035aeb08c8f0 (patch) | |
tree | 3bfb732397825626d534682f41a7c71ada006fd3 /Lib/test/test_fstring.py | |
parent | 548c4d31784048d64eb11ab13652ca0d4abb6d39 (diff) | |
download | cpython-b2080f65544093c8f07b4ecc43fe035aeb08c8f0.zip cpython-b2080f65544093c8f07b4ecc43fe035aeb08c8f0.tar.gz cpython-b2080f65544093c8f07b4ecc43fe035aeb08c8f0.tar.bz2 |
f-strings: More tests for empty expressions along with missing closing braces.
Diffstat (limited to 'Lib/test/test_fstring.py')
-rw-r--r-- | Lib/test/test_fstring.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/test/test_fstring.py b/Lib/test/test_fstring.py index 10c5849..d6f781c 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): |