[Python-checkins] cpython: Added more f-string test for empty expressions.
eric.smith
python-checkins at python.org
Wed Sep 23 14:00:08 CEST 2015
https://hg.python.org/cpython/rev/5a6d4fc4224f
changeset: 98220:5a6d4fc4224f
user: Eric V. Smith <eric at trueblade.com>
date: Wed Sep 23 08:00:01 2015 -0400
summary:
Added more f-string test for empty expressions.
files:
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
--- a/Lib/test/test_fstring.py
+++ b/Lib/test/test_fstring.py
@@ -296,6 +296,9 @@
"f'{!x:a}'",
"f'{ !xr:}'",
"f'{ !xr:a}'",
+
+ "f'{!}'",
+ "f'{:}'",
])
def test_parens_in_expressions(self):
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list