Skip to content

Commit 1a1adfc

Browse files
Fix args.
1 parent 2e14839 commit 1a1adfc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Lib/test/support/interpreters.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ def send(self, obj, timeout=None):
218218
219219
This blocks until the object is received.
220220
"""
221-
_channels.send(self._id, obj, timeout=timeout)
221+
_channels.send(self._id, obj, timeout=timeout, blocking=True)
222222

223223
def send_nowait(self, obj):
224224
"""Send the object to the channel's receiving end.
@@ -231,12 +231,12 @@ def send_nowait(self, obj):
231231
# See bpo-32604 and gh-19829.
232232
return _channels.send(self._id, obj, blocking=False)
233233

234-
def send_buffer(self, obj):
234+
def send_buffer(self, obj, timeout=None):
235235
"""Send the object's buffer to the channel's receiving end.
236236
237237
This blocks until the object is received.
238238
"""
239-
_channels.send_buffer(self._id, obj, blocking=True)
239+
_channels.send_buffer(self._id, obj, timeout=timeout, blocking=True)
240240

241241
def send_buffer_nowait(self, obj):
242242
"""Send the object's buffer to the channel's receiving end.

0 commit comments

Comments
 (0)