asyncio: Use socketpair() from test_utils in tests (Saúl Ibarra Corretgé).

This commit is contained in:
Guido van Rossum 2013-11-23 11:51:53 -08:00
parent 488b0da5da
commit d41c343f28
1 changed files with 1 additions and 1 deletions

View File

@ -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