Replace loop test fixture with event_loop (#3847)

This addresses a deprecation warning when calling tests with Python
3.10:

```
../python3.10/site-packages/pytest_aiohttp/plugin.py:33: DeprecationWarning: 'loop' fixture is deprecated and scheduled for removal, please use 'event_loop' instead
```
This commit is contained in:
Stefan Agner 2022-09-09 15:54:57 +02:00 committed by GitHub
parent 10dcf5c12f
commit 01e24a3e74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -225,7 +225,9 @@ async def resolved(dbus: DBus) -> Resolved:
@pytest.fixture
async def coresys(loop, docker, network_manager, aiohttp_client, run_dir) -> CoreSys:
async def coresys(
event_loop, docker, network_manager, aiohttp_client, run_dir
) -> CoreSys:
"""Create a CoreSys Mock."""
with patch("supervisor.bootstrap.initialize_system"), patch(
"supervisor.bootstrap.setup_diagnostics"