Skip to content

Commit

Permalink
Improve PropPutRefTest in test_comserver.
Browse files Browse the repository at this point in the history
  • Loading branch information
junkmd committed Dec 8, 2024
1 parent 43d0e9a commit 71e4723
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions comtypes/test/test_comserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ def doit():


class PropPutRefTest(unittest.TestCase):
def test(self, dynamic=False):
def doit(self, dynamic: bool):
d = CreateObject("Scripting.Dictionary", dynamic=dynamic)
s = CreateObject("TestComServerLib.TestComServer", dynamic=dynamic)
s.name = "the value"
Expand All @@ -235,8 +235,11 @@ def test(self, dynamic=False):
d.Item["var"] = VARIANT(s)
self.assertEqual(d.Item["var"], s)

def test_dispatch(self):
return self.test(dynamic=True)
def test_earlybind(self):
self.doit(dynamic=False)

def test_latebind(self):
self.doit(dynamic=True)


class TestEvents(unittest.TestCase):
Expand Down

0 comments on commit 71e4723

Please sign in to comment.