mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #24687: Plug refleak on SyntaxError in function parameters annotations.
This commit is contained in:
parent
2f07a66ded
commit
f315c1c016
4 changed files with 22 additions and 15 deletions
|
@ -211,6 +211,10 @@ class AsyncBadSyntaxTest(unittest.TestCase):
|
|||
pass
|
||||
""",
|
||||
|
||||
"""async def foo(a:await b):
|
||||
pass
|
||||
""",
|
||||
|
||||
"""def baz():
|
||||
async def foo(a=await b):
|
||||
pass
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue