From bf74f6126b6ee3fbd717394736b66ea3a2268fc0 Mon Sep 17 00:00:00 2001 From: junkmd Date: Mon, 9 Dec 2024 23:45:20 +0900 Subject: [PATCH] Improve `VariantTest.test_UDT` in `test_comserver`. --- comtypes/test/test_comserver.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/comtypes/test/test_comserver.py b/comtypes/test/test_comserver.py index b6373b3d..e0ba99f6 100644 --- a/comtypes/test/test_comserver.py +++ b/comtypes/test/test_comserver.py @@ -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))