enthought / comtypes

A pure Python, lightweight COM client and server framework, based on the ctypes Python FFI package.
Other
283 stars 96 forks source link

Refactoring `test_findgendir` #537

Closed junkmd closed 2 months ago

junkmd commented 2 months ago

This is a reintroduce of the patch approach which is used in test_client_regenerate_modules I wrote in #533.

test_findgendir was written at a time when unittest.mock.patch was not supported in the standard library, so the temporary patch approach was classical.

While my memory of the sys.modules and import system is still fresh, I refactored these test codebases.