Skip to content

Commit c9030ff

Browse files
authored
chore: fix deprecation warning (#1128)
1 parent e301b44 commit c9030ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

playwright/_impl/_network.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ async def _race_with_page_close(self, future: Coroutine) -> None:
268268
# Note that page could be missing when routing popup's initial request that
269269
# does not have a Page initialized just yet.
270270
await asyncio.wait(
271-
[future, page._closed_or_crashed_future],
271+
[asyncio.create_task(future), page._closed_or_crashed_future],
272272
return_when=asyncio.FIRST_COMPLETED,
273273
)
274274
else:

0 commit comments

Comments
 (0)