Those tests should be converted to be regular py.test tests IMO, they now seem to rely on some very homespun code (e.g. some Python code in .test files that maybe somehow relates to the .py files...).
They're also not covered by any code coverage so long as that's happening.
_Originally posted by @akx in https://github.com/eclipse/paho.mqtt.python/pull/718#discussion_r1432723019_