asyncio: Use socketpair() from test_utils in tests (Saúl Ibarra Corretgé).
This commit is contained in:
parent
488b0da5da
commit
d41c343f28
|
@ -896,7 +896,7 @@ class EventLoopTestsMixin:
|
||||||
proto = MyWritePipeProto(loop=self.loop)
|
proto = MyWritePipeProto(loop=self.loop)
|
||||||
return proto
|
return proto
|
||||||
|
|
||||||
rsock, wsock = self.loop._socketpair()
|
rsock, wsock = test_utils.socketpair()
|
||||||
pipeobj = io.open(wsock.detach(), 'wb', 1024)
|
pipeobj = io.open(wsock.detach(), 'wb', 1024)
|
||||||
|
|
||||||
@tasks.coroutine
|
@tasks.coroutine
|
||||||
|
|
Loading…
Reference in New Issue