Skip to content

Commit

Permalink
Add test_msvidctl. (#603)
Browse files Browse the repository at this point in the history
* Add `test_msvidctl` to `test_client`.

* Add an assertion.
  • Loading branch information
junkmd authored Aug 21, 2024
1 parent 9214bfc commit 962c70c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions comtypes/test/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,15 @@ def test_portabledeviceapi(self):

self.assertTrue(issubclass(mod.IStream, ISequentialStream))

def test_msvidctl(self):
with contextlib.redirect_stdout(None): # supress warnings
mod = comtypes.client.GetModule("msvidctl.dll")
from comtypes.persist import IPersist
from comtypes.typeinfo import IRecordInfo

self.assertIs(mod.IPersist, IPersist)
self.assertIs(mod.IRecordInfo, IRecordInfo)

def test_no_replacing_Patch_namespace(self):
# NOTE: An object named `Patch` is defined in some dll.
# Depending on how the namespace is defined in the static module,
Expand Down

0 comments on commit 962c70c

Please sign in to comment.