pytest-dev / pytest-twisted

test twisted code with pytest
BSD 3-Clause "New" or "Revised" License
46 stars 24 forks source link

(3.10+) DeprecationWarning: There is no current event loop #177

Open pvanderlinden opened 5 months ago

pvanderlinden commented 5 months ago

When using the asyncio reactor, in newer versions of python, you get a deprecation warning: "twisted/internet/asyncioreactor.py:50: DeprecationWarning: There is no current event loop".

This can be resolved by passing an event loop to the asyncio reactor install function.