mirror of
https://github.com/python/cpython
synced 2024-09-20 07:21:46 +00:00
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:
parent
45cab8ccdd
commit
da25abf712
|
@ -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}'",
|
||||
|
|
Loading…
Reference in a new issue