From: Jason R. Coombs Date: Sun, 6 Nov 2016 16:14:48 +0000 (-0500) Subject: Additionally show that a backslash-escaped opening brace is treated as a literal... X-Git-Tag: v3.6.0b4~148 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=da25abf7121d8fb330da51f9bca8847be05f56f8;p=python Additionally show that a backslash-escaped opening brace is treated as a literal and thus triggers the single closing brace error, clarifying #28590. --- diff --git a/Lib/test/test_fstring.py b/Lib/test/test_fstring.py index 68aa526639..45f768ce2b 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}'",