mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
gh-122026: Fix identification of mismatched parentheses inside f-strings (#122028)
This commit is contained in:
parent
186b4d8ea2
commit
2009e25e26
3 changed files with 6 additions and 0 deletions
|
@ -896,6 +896,7 @@ x = (
|
|||
"f'{:2}'",
|
||||
"f'''{\t\f\r\n:a}'''",
|
||||
"f'{:'",
|
||||
"F'{[F'{:'}[F'{:'}]]]",
|
||||
])
|
||||
|
||||
self.assertAllRaise(SyntaxError,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue