Version
1.62.0
Steps to reproduce
With Pythin 3.14.7 and Playwright 1.62.0:
import asyncio
from playwright.async_api import async_playwright
async def run_browser():
async with async_playwright():
pass
async def run():
task = asyncio.create_task(run_browser())
await asyncio.sleep(0.01) # for me: some value between 0.001 and 0.3
task.cancel()
try:
await task
except asyncio.CancelledError:
pass
asyncio.run(run())
Expected behavior
The program exits.
Actual behavior
The program hangs.
Additional context
No response
Environment
Linux 7.1.3
Python 3.14.7
playwright 1.62.0 (latest version on PyPI)
Version
1.62.0
Steps to reproduce
With Pythin 3.14.7 and Playwright 1.62.0:
Expected behavior
The program exits.
Actual behavior
The program hangs.
Additional context
No response
Environment