Skip to content

Commit

Permalink
Comment out if is_resource_enabled("CRASHES"):.
Browse files Browse the repository at this point in the history
  • Loading branch information
junkmd committed Dec 5, 2024
1 parent a402116 commit ccefe77
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions comtypes/test/test_comserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def test(self):

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

def ShowEvents(self):
def ShowEventsFloat(self):
"""
>>> from comtypes.client import CreateObject, ShowEvents
>>>
Expand All @@ -174,26 +174,26 @@ def ShowEvents(self):
>>>
"""

# The following test, if enabled, works but the testsuit
# crashes elsewhere. Is there s problem with SAFEARRAYs?

if is_resource_enabled("CRASHES"):

def Fails(self):
"""
>>> from comtypes.client import CreateObject, ShowEvents
>>>
>>> o = CreateObject("TestComServerLib.TestComServer")
>>> con = ShowEvents(o)
# event found: ITestComServerEvents_EvalStarted
# event found: ITestComServerEvents_EvalCompleted
>>> result = o.eval("['32'] * 2")
Event ITestComServerEvents_EvalStarted(None, u"['32'] * 2")
Event ITestComServerEvents_EvalCompleted(None, u"['32'] * 2", VARIANT(vt=0x200c, (u'32', u'32')))
>>> result
(u'32', u'32')
>>>
"""
# # The following test, if enabled, works but the testsuit
# # crashes elsewhere. Is there s problem with SAFEARRAYs?

# if is_resource_enabled("CRASHES"):

# def Fails(self):
# """
# >>> from comtypes.client import CreateObject, ShowEvents
# >>>
# >>> o = CreateObject("TestComServerLib.TestComServer")
# >>> con = ShowEvents(o)
# # event found: ITestComServerEvents_EvalStarted
# # event found: ITestComServerEvents_EvalCompleted
# >>> result = o.eval("['32'] * 2")
# Event ITestComServerEvents_EvalStarted(None, u"['32'] * 2")
# Event ITestComServerEvents_EvalCompleted(None, u"['32'] * 2", VARIANT(vt=0x200c, (u'32', u'32')))
# >>> result
# (u'32', u'32')
# >>>
# """

def GetEvents(self):
"""
Expand Down

0 comments on commit ccefe77

Please sign in to comment.