    def event_loop(request):
        """Same as pytest-asyncio.event_loop, but re-scoped to module-level"""
        event_loop = asyncio.new_event_loop()
        asyncio.set_event_loop(event_loop)
        return event_loop
Same as pytest-asyncio.event_loop, but re-scoped to module-level
jupyterhub/tests/conftest.py