Skip to content

Commit

Permalink
Improve VariantTest.test_UDT in test_comserver.
Browse files Browse the repository at this point in the history
  • Loading branch information
junkmd committed Dec 9, 2024
1 parent 88959c8 commit bf74f61
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion comtypes/test/test_comserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,9 @@ def test_UDT(self):

v = VARIANT(MYCOLOR(red=1.0, green=2.0, blue=3.0))
value = v.value
self.assertEqual((1.0, 2.0, 3.0), (value.red, value.green, value.blue))
self.assertEqual(1.0, value.red) # type: ignore
self.assertEqual(2.0, value.green) # type: ignore
self.assertEqual(3.0, value.blue) # type: ignore

def func():
v = VARIANT(MYCOLOR(red=1.0, green=2.0, blue=3.0))
Expand Down

0 comments on commit bf74f61

Please sign in to comment.