diff --git a/tests/conftest.py b/tests/conftest.py index e0fcabb5..6fb14340 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -128,9 +128,9 @@ class UserManagerMock(BaseTestUserManager[models.UP]): @pytest.fixture(scope="session") def event_loop(): - """Force the pytest-asyncio loop to be the main one.""" loop = asyncio.get_event_loop() yield loop + loop.close() AsyncMethodMocker = Callable[..., MagicMock]