Skip to content

pylibjuju can't reconnect on python 3.12 #1102

@gboutry

Description

@gboutry

Description

pylibjuju on python 3.12 fails to reconnect when the websocket closes.

Urgency

Annoying bug in our test suite

Python-libjuju version

3.5.0.0

Juju version

3.5.3

Reproduce / Test

This is because of python 3.11+
-> pylibjuju is passing a coroutine to asyncio.wait, which removed the support for this in 3.11

await jasyncio.wait([self.reconnect()])

python 3.11 asyncio: https://github.com/python/cpython/blob/8b275e77d235b0e813f996173fc26eaa3484737c/Lib/asyncio/tasks.py#L425

python 3.10 asyncio: https://github.com/python/cpython/blob/0c5fc27217525c4e40b4064e6979f467540c2fc8/Lib/asyncio/tasks.py#L377

Metadata

Metadata

Assignees

Labels

kind/bugindicates a bug in the projectpriority/highshould be prioritized

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions