Skip to content

Commit 21b6ab6

Browse files
authored
adjust comments (#415)
1 parent a6fc08b commit 21b6ab6

File tree

1 file changed

+27
-27
lines changed

1 file changed

+27
-27
lines changed

comtypes/test/TestComServer.py

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -65,36 +65,36 @@ def ITestComServer__get_array(self, this, parray):
6565
# Hm, why is assignment to value needed?
6666

6767
# these leak
68-
## parray[0].value = (1, "2", None, 3.14)
69-
## parray[0].value = (1, "2", None)
68+
# parray[0].value = (1, "2", None, 3.14)
69+
# parray[0].value = (1, "2", None)
7070

71-
## parray[0].value = ((1, 2, 3), (4, 5, 6), (7, 8, 9))
72-
## parray[0].value = (1,), (4,)
71+
# parray[0].value = ((1, 2, 3), (4, 5, 6), (7, 8, 9))
72+
# parray[0].value = (1,), (4,)
7373

74-
## parray[0].value = (), ()
75-
## parray[0].value = (), 0
74+
# parray[0].value = (), ()
75+
# parray[0].value = (), 0
7676

7777
# leakage
78-
## parray[0].value = (((127900.0, None, 2620),
79-
## (127875.0, None, 2335),
80-
## (127675.0, 1071, None)),
81-
## 127800.0)
78+
# parray[0].value = (((127900.0, None, 2620),
79+
# (127875.0, None, 2335),
80+
# (127675.0, 1071, None)),
81+
# 127800.0)
8282

8383
# reported *no* leakage, but leaks anyway
84-
## parray[0].value = ((128000.0, None, 2576),
85-
## (127975.0, None, 1923),
86-
## (127950.0, None, 1734))
84+
# parray[0].value = ((128000.0, None, 2576),
85+
# (127975.0, None, 1923),
86+
# (127950.0, None, 1734))
8787

8888
# these don't leak
89-
## parray[0].value = (1, 2, 3)
90-
## parray[0].value = (1, 2, None)
91-
## parray[0].value = (1, 3.14)
92-
## parray[0].value = [1, "(1, 2, 3)"]
93-
## parray[0].value = (1, "2")
94-
## parray[0].value = [1, "2"]
95-
## parray[0].value = (None, None, None)
89+
# parray[0].value = (1, 2, 3)
90+
# parray[0].value = (1, 2, None)
91+
# parray[0].value = (1, 3.14)
92+
# parray[0].value = [1, "(1, 2, 3)"]
93+
# parray[0].value = (1, "2")
94+
# parray[0].value = [1, "2"]
95+
# parray[0].value = (None, None, None)
9696

97-
## parray[0].value = (),
97+
# parray[0].value = (),
9898

9999
return S_OK
100100

@@ -124,25 +124,25 @@ def ITestComServer__set_name(self, this, name):
124124
self._name = name
125125
return S_OK
126126

127-
## def ITestComServer_SetName(self, this, name):
128-
## self._name = name
129-
## return S_OK
127+
# def ITestComServer_SetName(self, this, name):
128+
# self._name = name
129+
# return S_OK
130130

131131
def ITestComServer_sEtNaMe(self, this, name):
132132
# the method is spelled in a funny way to check case
133133
# insensitivity when implementing COM methods.
134134
self._name = name
135135
return S_OK
136136

137-
## [id(18), helpstring("a method with [in] and [out] args in mixed order")]
138-
## HRESULT MixedInOut([in] int a, [out] int *b, [in] int c, [out] int *d);
137+
# [id(18), helpstring("a method with [in] and [out] args in mixed order")]
138+
# HRESULT MixedInOut([in] int a, [out] int *b, [in] int c, [out] int *d);
139139
def MixedInOut(self, a, c):
140140
return a+1, c+1
141141

142142
if __name__ == "__main__":
143143
try:
144144
from comtypes.server.register import UseCommandLine
145-
## logging.basicConfig(level=logging.DEBUG)
145+
# logging.basicConfig(level=logging.DEBUG)
146146
UseCommandLine(TestComServer)
147147
except Exception:
148148
import traceback

0 commit comments

Comments
 (0)