Skip to content

Fix test failures on Python 3.14 - #394

Merged
haata merged 2 commits into
capnproto:masterfrom
Liamolucko:py314
Jan 26, 2026
Merged

Fix test failures on Python 3.14#394
haata merged 2 commits into
capnproto:masterfrom
Liamolucko:py314

Conversation

@Liamolucko

Copy link
Copy Markdown
Contributor

As documented at
https://docs.python.org/3/library/asyncio-eventloop.html#asyncio.get_event_loop, get_event_loop now fails if there is no active event loop. Since there will never already be one at the top level of a file anyway, explicitly create a new one every time.

As documented at
https://docs.python.org/3/library/asyncio-eventloop.html#asyncio.get_event_loop,
`get_event_loop` now fails if there is no active event loop. Since there
will never already be one at the top level of a file anyway, explicitly
create a new one every time.
@haata

haata commented Jan 24, 2026

Copy link
Copy Markdown
Collaborator

@Liamolucko looks good!
Would you mind fixing the linting errors (I suspect there was some version change in the tool which is causing it to be picked up)?

@haata
haata merged commit aa90ab6 into capnproto:master Jan 26, 2026
12 checks passed
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.

2 participants