[Python-checkins] cpython: asyncio: Use socketpair() from test_utils in tests (Saúl Ibarra Corretgé).

guido.van.rossum python-checkins at python.org
Sat Nov 23 20:53:13 CET 2013


http://hg.python.org/cpython/rev/80f48fbb25b8
changeset:   87443:80f48fbb25b8
user:        Guido van Rossum <guido at python.org>
date:        Sat Nov 23 11:51:53 2013 -0800
summary:
  asyncio: Use socketpair() from test_utils in tests (Saúl Ibarra Corretgé).

files:
  Lib/test/test_asyncio/test_events.py |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Lib/test/test_asyncio/test_events.py b/Lib/test/test_asyncio/test_events.py
--- a/Lib/test/test_asyncio/test_events.py
+++ b/Lib/test/test_asyncio/test_events.py
@@ -896,7 +896,7 @@
             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

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list