enthought/comtypes

make tests for ensuring `IEnum...` in generated modules behave as a `Iterator`

junkmd opened this issue · 1 comments

THIS IS FOR drop_py2 PLAN! Please see #392.

Derived class of IUnknown which has name starts with IEnum and has methods named "Next", "Skip", "Reset", and "Clone" in generated modules are expected that behave as Iterator.

This behavior has never been tested before.

And they not work as expected. This issue was discovered in #353 and will be fixed.

We want to ensure that this behavior is ensured by tests using COM libraries and COM objects that are not environment-dependent.

  • The test illustrated in #353 is environment-dependent.

If you have used IEnum... in Python2 before, you should have an idea for doing this easier.

Any opinions also would be appreciated.

This was resolved in #471