summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2013-11-23 19:51:53 (GMT)
committerGuido van Rossum <guido@python.org>2013-11-23 19:51:53 (GMT)
commitd41c343f28bd7631cfa866f8276673ccafb71d57 (patch)
treeb615669aa268f89f8752ba4457e3e2e92a731cf7
parent488b0da5da32fbf356e6bc8c9f8b4e34888408e2 (diff)
downloadcpython-d41c343f28bd7631cfa866f8276673ccafb71d57.zip
cpython-d41c343f28bd7631cfa866f8276673ccafb71d57.tar.gz
cpython-d41c343f28bd7631cfa866f8276673ccafb71d57.tar.bz2
asyncio: Use socketpair() from test_utils in tests (Saúl Ibarra Corretgé).
-rw-r--r--Lib/test/test_asyncio/test_events.py2
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
index 3a2dece..a9c6385 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