#12 broken test scripts using ConnectableObjectMixin

open
nobody
None
5
2014-02-19
2009-01-29
Anonymous
No

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

Discussion