Additionally show that a backslash-escaped opening brace is treated as a literal and thus triggers the single closing brace error, clarifying #28590.

This commit is contained in:
Jason R. Coombs 2016-11-06 11:14:48 -05:00
parent 45cab8ccdd
commit da25abf712

View file

@ -628,6 +628,7 @@ def test_mismatched_braces(self):
"f'}'",
"f'x}'",
"f'x}x'",
r"f'\u007b}'",
# Can't have { or } in a format spec.
"f'{3:}>10}'",