Skip to content

Commit

Permalink
[test\test_comobject.py] Use OleDLL instead of oledll (#767)
Browse files Browse the repository at this point in the history
  • Loading branch information
moi15moi authored Jan 26, 2025
1 parent 4fd8cc3 commit aa32842
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 aa32842

Please sign in to comment.