From: Guido van Rossum Date: Sat, 23 Nov 2013 19:51:53 +0000 (-0800) Subject: asyncio: Use socketpair() from test_utils in tests (Saúl Ibarra Corretgé). X-Git-Tag: v3.4.0b1~54 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d41c343f28bd7631cfa866f8276673ccafb71d57;p=thirdparty%2FPython%2Fcpython.git asyncio: Use socketpair() from test_utils in tests (Saúl Ibarra Corretgé). --- diff --git a/Lib/test/test_asyncio/test_events.py b/Lib/test/test_asyncio/test_events.py index 3a2dece031fa..a9c6385c95a5 100644 --- a/Lib/test/test_asyncio/test_events.py +++ b/Lib/test/test_asyncio/test_events.py @@ -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