test: Python 3.14 compatibility update
This commit is contained in:
parent
ec2cf0a522
commit
1548276702
1 changed files with 8 additions and 0 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue