opcua-asyncio
opcua-asyncio copied to clipboard
CI on python 3.12
unfortunately one test seems broken on python 3.12 and I have no ideas why.... Cannot reproduce if we run that test alone....
I reproduced the same behaviour locally on a python 3.12 without performance optimizations: Same issue.
I did a binary search on the tests and found (at least) two which are 'helping' the failing test not to run into a timeout.
I think its the subscription line in e.g. test_set_monitoring_mode
:
await opc.opc.create_subscription(100, None)
Removing all other except the failing test and this reduced snippet:
@pytest.mark.parametrize("opc", ["client"], indirect=True)
async def test_set_monitoring_mode(opc):
await opc.opc.create_subscription(100, None)
leads to your found tested issue.
I'm not sure yet, what change in python 3.12 introduced the problem, but I thought sharing this early might help others seeing the problem faster than me.