comtypes icon indicating copy to clipboard operation
comtypes copied to clipboard

broken test scripts using ConnectableObjectMixin

Open cfarrow opened this issue 10 years ago • 1 comments

Both ./test/TestComServer.py and ./TestDispServer.py scripts are broken in 0.6.0 (tested on Windows XP, both .zip and .exe distribution). I was able to debug for the actual cause, the reason is that classes using ConnectableObjectMixin (comtypes.server.connectionpoints.ConnectableObjectMixin) require that outgoing_interfaces be declared in the class definition. So line 107 in server/connectionpoints.py fails when creating a client tries to use the com object. Actually, TestDispServer.tlb is missing (yes, this time I confirmed it's missing from the .exe distribution), I just focused on the TestComServer.py script, but I'm sure it will fail when having the .tlb file due to the same reason. I don't know what's best, just simple remove the ConnectableObjectMixin from the class (I don't like this, but works) or implement the outgoing_interfaces classes (yes, I would like this!) so we have a great hint on how to use it. R. Aguirre

cfarrow avatar Feb 20 '14 02:02 cfarrow