Skip to content
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

Avoid manual async loop management #742

Merged
merged 1 commit into from
Dec 8, 2024

Conversation

carlwgeorge
Copy link
Contributor

Python 3.14 removes the implicit creation of an event loop when running asyncio.get_event_loop(). Rather than manually managing the loop creation, switch the async tests to use the higher level asyncio.run() interface, as recommended by the standard library docs.

https://docs.python.org/dev/whatsnew/3.14.html#id4

Resolves #741

Python 3.14 removes the implicit creation of an event loop when running
asyncio.get_event_loop().  Rather than manually managing the loop
creation, switch the async tests to use the higher level asyncio.run()
interface, as recommended by the standard library docs.

https://docs.python.org/dev/whatsnew/3.14.html#id4

Resolves amoffat#741
@carlwgeorge carlwgeorge force-pushed the no_implicit_event_loop branch from 5db92db to 484399f Compare December 7, 2024 08:25
@amoffat amoffat merged commit b658ce2 into amoffat:develop Dec 8, 2024
19 checks passed
@amoffat
Copy link
Owner

amoffat commented Dec 8, 2024

Thank you for the fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FunctionalTests.test_async* tests raise RuntimeErrors with Python 3.14
2 participants