-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove global util.main_event_loop
#2
Comments
deprecation warning on test results
proposed solution try:
loop = asyncio.get_running_loop()
except RuntimeError:
loop = asyncio.new_event_loop()
asyncio.set_event_loop(loop) proposed solution to be applied to reference -> https://docs.python.org/3/library/asyncio-policy.html#asyncio.DefaultEventLoopPolicy |
another good catch there. I tried it in a couple places, and found even after that is fixed in the 3 tests using After those updates, the tests work on 3.10 and 3.12 for me locally. I'm adding/updating a |
Primarily due to version changes over time, this all used to work in older versions, but Python 3.12 started issuing new warnings and errors unless manual steps are used for event loop handling instead of automatic steps. Fixes #2
from discussion #62 on ib_async
pull request #1 created
The text was updated successfully, but these errors were encountered: