test: Python 3.14 compatibility update

This commit is contained in:
Goffi 2026-04-17 15:27:55 +02:00
commit 1548276702

View file

@ -1,3 +1,11 @@
import asyncio
from pytest_twisted import init_asyncio_reactor
# FIXME: Python 3.14 compatibility fix, see libervia/backend/core/launcher.py for details.
try:
asyncio.get_event_loop()
except RuntimeError:
loop = asyncio.new_event_loop()
asyncio.set_event_loop(loop)
init_asyncio_reactor()