Fix test failures on Python 3.14 (#394)
* Fix test failures on Python 3.14 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. * Reformat with black 2026 style
This commit is contained in:
@@ -440,7 +440,7 @@ SSL/TLS setup effectively wraps the socket transport. You'll need an SSL certifi
|
||||
Due to a `bug <https://bugs.python.org/issue36709>`_ in Python 3.8 asyncio client needs to be initialized in a slightly different way::
|
||||
|
||||
if __name__ == '__main__':
|
||||
loop = asyncio.get_event_loop()
|
||||
loop = asyncio.new_event_loop()
|
||||
loop.run_until_complete(capnp.run(main(parse_args().host)))
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user