summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2016-11-06 16:14:48 (GMT)
committerJason R. Coombs <jaraco@jaraco.com>2016-11-06 16:14:48 (GMT)
commitda25abf7121d8fb330da51f9bca8847be05f56f8 (patch)
tree149830e51bbe2a0255002303d22619c8285b30f5 /Lib
parent45cab8ccdd8577e3653ec80a3cb416fd9608f2ef (diff)
downloadcpython-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.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_fstring.py1
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}'",