opcua-asyncio icon indicating copy to clipboard operation
opcua-asyncio copied to clipboard

CI on python 3.12

Open oroulet opened this issue 8 months ago • 1 comments

unfortunately one test seems broken on python 3.12 and I have no ideas why.... Cannot reproduce if we run that test alone....

oroulet avatar Dec 16 '23 14:12 oroulet

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.

AiyionPrime avatar Feb 17 '24 22:02 AiyionPrime