mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Tulip issue 184: Fix test_pipe() on Windows
Pass explicitly the event loop to StreamReaderProtocol.
This commit is contained in:
parent
b86a96802b
commit
9036e49ba1
1 changed files with 2 additions and 1 deletions
|
@ -67,7 +67,8 @@ class ProactorTests(test_utils.TestCase):
|
|||
clients = []
|
||||
for i in range(5):
|
||||
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(
|
||||
lambda: protocol, ADDRESS)
|
||||
self.assertIsInstance(trans, asyncio.Transport)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue