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