From e3cbc62965b5b38e9f41c71cbe3b8d8caf8a2217 Mon Sep 17 00:00:00 2001 From: junkmd Date: Fri, 6 Dec 2024 23:37:06 +0900 Subject: [PATCH 1/2] Add `verbose=False`. --- 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 e7e9636b6..daa751858 100644 --- a/comtypes/test/test_comserver.py +++ b/comtypes/test/test_comserver.py @@ -160,7 +160,9 @@ class TestCase(unittest.TestCase): def test(self): import comtypes.test.test_comserver - doctest.testmod(comtypes.test.test_comserver, optionflags=doctest.ELLIPSIS) + doctest.testmod( + comtypes.test.test_comserver, verbose=False, optionflags=doctest.ELLIPSIS + ) # The following functions are never called, they only contain doctests: From 262747b27ed4ec8bd53a7fb4a4746f13f2fdbdef Mon Sep 17 00:00:00 2001 From: junkmd Date: Fri, 6 Dec 2024 23:37:06 +0900 Subject: [PATCH 2/2] Split `TestCase` into `TestEvents` and `ShowEventsExamples`. --- 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 daa751858..99d93ebf5 100644 --- a/comtypes/test/test_comserver.py +++ b/comtypes/test/test_comserver.py @@ -156,7 +156,7 @@ def create_object(self): ) -class TestCase(unittest.TestCase): +class TestEvents(unittest.TestCase): def test(self): import comtypes.test.test_comserver @@ -164,6 +164,8 @@ def test(self): comtypes.test.test_comserver, verbose=False, optionflags=doctest.ELLIPSIS ) + +class ShowEventsExamples: # The following functions are never called, they only contain doctests: def ShowEventsFloat(self):