Kaydet (Commit) 9036e49b authored tarafından Victor Stinner's avatar Victor Stinner

Tulip issue 184: Fix test_pipe() on Windows

Pass explicitly the event loop to StreamReaderProtocol.
üst b86a9680
...@@ -67,7 +67,8 @@ class ProactorTests(test_utils.TestCase): ...@@ -67,7 +67,8 @@ class ProactorTests(test_utils.TestCase):
clients = [] clients = []
for i in range(5): for i in range(5):
stream_reader = asyncio.StreamReader(loop=self.loop) stream_reader = asyncio.StreamReader(loop=self.loop)
protocol = asyncio.StreamReaderProtocol(stream_reader) protocol = asyncio.StreamReaderProtocol(stream_reader,
loop=self.loop)
trans, proto = yield from self.loop.create_pipe_connection( trans, proto = yield from self.loop.create_pipe_connection(
lambda: protocol, ADDRESS) lambda: protocol, ADDRESS)
self.assertIsInstance(trans, asyncio.Transport) self.assertIsInstance(trans, asyncio.Transport)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment