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
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
python-libjuju/juju/client/connection.py
Line 659 in 7d2107f
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