enthought / enthought/comtypes
broken test scripts using ConnectableObjectMixin
- Dominant language
- Python
- Stars
- 345
- Forks
- 105
- PR merge metrics
- No merged PRs in 30d
Description
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
Contributor guide
Assessment
This issue has not been assessed yet.