diff options
author | Eric V. Smith <eric@trueblade.com> | 2015-09-23 12:00:01 (GMT) |
---|---|---|
committer | Eric V. Smith <eric@trueblade.com> | 2015-09-23 12:00:01 (GMT) |
commit | 548c4d31784048d64eb11ab13652ca0d4abb6d39 (patch) | |
tree | a3b81108c8aed28d82797829feadcf2e3aed5a53 | |
parent | 1d44c41b0cc183603b31ac943ef452456bef089f (diff) | |
download | cpython-548c4d31784048d64eb11ab13652ca0d4abb6d39.zip cpython-548c4d31784048d64eb11ab13652ca0d4abb6d39.tar.gz cpython-548c4d31784048d64eb11ab13652ca0d4abb6d39.tar.bz2 |
Added more f-string test for empty expressions.
-rw-r--r-- | Lib/test/test_fstring.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_fstring.py b/Lib/test/test_fstring.py index 2a1a3cd..10c5849 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): |