Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d41c343

Browse files
committed
asyncio: Use socketpair() from test_utils in tests (Saúl Ibarra Corretgé).
1 parent 488b0da commit d41c343

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/test/test_asyncio/test_events.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -896,7 +896,7 @@ def factory():
896896
proto = MyWritePipeProto(loop=self.loop)
897897
return proto
898898

899-
rsock, wsock = self.loop._socketpair()
899+
rsock, wsock = test_utils.socketpair()
900900
pipeobj = io.open(wsock.detach(), 'wb', 1024)
901901

902902
@tasks.coroutine

0 commit comments

Comments
 (0)