Skip to content

Commit

Permalink
[test\test_comobject.py] Use WinDLL instead of oledll
Browse files Browse the repository at this point in the history
Partially fix enthought#735
  • Loading branch information
moi15moi committed Jan 12, 2025
1 parent 2c26410 commit fc5630a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions comtypes/test/test_comobject.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
from ctypes import POINTER, byref, pointer
from unittest import mock

import comtypes
import comtypes.client
from comtypes import COMObject, IUnknown, hresult
from comtypes import CLSCTX_SERVER, COMObject, IUnknown, hresult
from comtypes._post_coinit.misc import _CoCreateInstance
from comtypes.automation import IDispatch

comtypes.client.GetModule("UIAutomationCore.dll")
Expand Down Expand Up @@ -54,10 +54,10 @@ def test_e_no_interface(self):

def test_valid_pointer(self):
ptr = ctypes.c_void_p()
ctypes.oledll.ole32.CoCreateInstance(
_CoCreateInstance(
byref(scrrun.Dictionary._reg_clsid_),
None,
comtypes.CLSCTX_SERVER,
CLSCTX_SERVER,
byref(scrrun.IDictionary._iid_),
byref(ptr),
)
Expand Down

0 comments on commit fc5630a

Please sign in to comment.