Skip to content

Commit

Permalink
Set verbose=False into doctest.testmod to suppress the output. (#682
Browse files Browse the repository at this point in the history
)

* Add `verbose=False`.

* Split `TestCase` into `TestEvents` and `ShowEventsExamples`.
  • Loading branch information
junkmd authored Dec 6, 2024
1 parent 3d6eb4d commit f0e5ab7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions comtypes/test/test_comserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,12 +156,16 @@ def create_object(self):
)


class TestCase(unittest.TestCase):
class TestEvents(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
)


class ShowEventsExamples:
# The following functions are never called, they only contain doctests:

def ShowEventsFloat(self):
Expand Down

0 comments on commit f0e5ab7

Please sign in to comment.