mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
asyncio: Use socketpair() from test_utils in tests (Saúl Ibarra Corretgé).
This commit is contained in:
parent
488b0da5da
commit
d41c343f28
1 changed files with 1 additions and 1 deletions
|
@ -896,7 +896,7 @@ class EventLoopTestsMixin:
|
|||
proto = MyWritePipeProto(loop=self.loop)
|
||||
return proto
|
||||
|
||||
rsock, wsock = self.loop._socketpair()
|
||||
rsock, wsock = test_utils.socketpair()
|
||||
pipeobj = io.open(wsock.detach(), 'wb', 1024)
|
||||
|
||||
@tasks.coroutine
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue