diff --git a/Lib/test/test_asyncio/test_events.py b/Lib/test/test_asyncio/test_events.py index 3a2dece031f..a9c6385c95a 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