diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2016-11-06 16:14:48 (GMT) |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2016-11-06 16:14:48 (GMT) |
commit | da25abf7121d8fb330da51f9bca8847be05f56f8 (patch) | |
tree | 149830e51bbe2a0255002303d22619c8285b30f5 | |
parent | 45cab8ccdd8577e3653ec80a3cb416fd9608f2ef (diff) | |
download | cpython-da25abf7121d8fb330da51f9bca8847be05f56f8.zip cpython-da25abf7121d8fb330da51f9bca8847be05f56f8.tar.gz cpython-da25abf7121d8fb330da51f9bca8847be05f56f8.tar.bz2 |
Additionally show that a backslash-escaped opening brace is treated as a literal and thus triggers the single closing brace error, clarifying #28590.
-rw-r--r-- | Lib/test/test_fstring.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_fstring.py b/Lib/test/test_fstring.py index 68aa526..45f768c 100644 --- a/Lib/test/test_fstring.py +++ b/Lib/test/test_fstring.py @@ -628,6 +628,7 @@ f'{a * x()}'""" "f'}'", "f'x}'", "f'x}x'", + r"f'\u007b}'", # Can't have { or } in a format spec. "f'{3:}>10}'", |