@@ -8,7 +8,7 @@ def task(ctx, task):
88 exec_lib = ctx .proxies .get_exec_lib_proxy ()
99
1010 # create a new port
11- port = exec_lib .CreateMsgPort (wrap_res = MsgPort )
11+ port = exec_lib .CreateMsgPort ()
1212 assert type (port ) is MsgPort
1313
1414 # delete a message port
@@ -26,11 +26,11 @@ def task(ctx, task):
2626 exec_lib = ctx .proxies .get_exec_lib_proxy ()
2727
2828 # create a new port
29- port = exec_lib .CreateMsgPort (wrap_res = MsgPort )
29+ port = exec_lib .CreateMsgPort ()
3030 assert type (port ) is MsgPort
3131
3232 # port is empty
33- msg = exec_lib .GetMsg (port , wrap_res = MsgPort )
33+ msg = exec_lib .GetMsg (port )
3434 assert msg is None
3535
3636 # alloc message
@@ -41,14 +41,14 @@ def task(ctx, task):
4141 exec_lib .PutMsg (port , msg )
4242
4343 # get message from port
44- msg2 = exec_lib .GetMsg (port , wrap_res = Message )
44+ msg2 = exec_lib .GetMsg (port )
4545 assert msg2
4646
4747 # got same message
4848 assert msg == msg2
4949
5050 # port empty again
51- msg3 = exec_lib .GetMsg (port , wrap_res = MsgPort )
51+ msg3 = exec_lib .GetMsg (port )
5252 assert msg3 is None
5353
5454 # delete a message port
@@ -68,11 +68,11 @@ def task(ctx, task):
6868 exec_lib = ctx .proxies .get_exec_lib_proxy ()
6969
7070 # create a new port
71- port = exec_lib .CreateMsgPort (wrap_res = MsgPort )
71+ port = exec_lib .CreateMsgPort ()
7272 assert type (port ) is MsgPort
7373
7474 # port is empty
75- msg = exec_lib .GetMsg (port , wrap_res = MsgPort )
75+ msg = exec_lib .GetMsg (port )
7676 assert msg is None
7777
7878 # alloc message
@@ -86,14 +86,14 @@ def task(ctx, task):
8686 exec_lib .ReplyMsg (msg )
8787
8888 # get message from port
89- msg2 = exec_lib .GetMsg (port , wrap_res = Message )
89+ msg2 = exec_lib .GetMsg (port )
9090 assert msg2
9191
9292 # got same message
9393 assert msg == msg2
9494
9595 # port empty again
96- msg3 = exec_lib .GetMsg (port , wrap_res = MsgPort )
96+ msg3 = exec_lib .GetMsg (port )
9797 assert msg3 is None
9898
9999 # delete a message port
@@ -113,7 +113,7 @@ def task(ctx, task):
113113 exec_lib = ctx .proxies .get_exec_lib_proxy ()
114114
115115 # create a new port
116- port = exec_lib .CreateMsgPort (wrap_res = MsgPort )
116+ port = exec_lib .CreateMsgPort ()
117117 assert type (port ) is MsgPort
118118
119119 # get sigmask
@@ -136,7 +136,7 @@ def task(ctx, task):
136136 assert new_mask & sig_mask == sig_mask
137137
138138 # get message from port
139- msg2 = exec_lib .GetMsg (port , wrap_res = Message )
139+ msg2 = exec_lib .GetMsg (port )
140140 assert msg2
141141
142142 # got same message
@@ -159,7 +159,7 @@ def task(ctx, task):
159159 exec_lib = ctx .proxies .get_exec_lib_proxy ()
160160
161161 # create a new port
162- port = exec_lib .CreateMsgPort (wrap_res = MsgPort )
162+ port = exec_lib .CreateMsgPort ()
163163 assert type (port ) is MsgPort
164164
165165 # alloc message
@@ -192,28 +192,28 @@ def task(ctx, task):
192192 exec_lib = ctx .proxies .get_exec_lib_proxy ()
193193
194194 # create a new port
195- port = exec_lib .CreateMsgPort (wrap_res = MsgPort )
195+ port = exec_lib .CreateMsgPort ()
196196 assert type (port ) is MsgPort
197197
198198 # set name
199199 port .node .name .alloc_str (ctx .alloc , "foo" )
200200
201201 # port is not known yet
202- port2 = exec_lib .FindPort ("foo" , wrap_res = MsgPort )
202+ port2 = exec_lib .FindPort ("foo" )
203203 assert port2 is None
204204
205205 # add port
206206 exec_lib .AddPort (port )
207207
208208 # now we could find port
209- port2 = exec_lib .FindPort ("foo" , wrap_res = MsgPort )
209+ port2 = exec_lib .FindPort ("foo" )
210210 assert port2 == port
211211
212212 # remove port again
213213 exec_lib .RemPort (port )
214214
215215 # now we cannot find it
216- port2 = exec_lib .FindPort ("foo" , wrap_res = MsgPort )
216+ port2 = exec_lib .FindPort ("foo" )
217217 assert port2 is None
218218
219219 # free name string
0 commit comments