Fix deprecated asyncio_mode legacy pytest warnings. context
Migrated from D7725 (view on Phabricator)