fix DeprecationWarning when running asyncio tests (GH-30486)

1 file changed