diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2015-01-13 16:14:53 +0100 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2015-01-13 16:14:53 +0100 |
commit | 41a067f638699b8a01f0e16aa3b6e94a1a0b9566 (patch) | |
tree | c6784973671fafad48d757bc86d851fc552add9d | |
parent | 7195e0c6ad301bb3c653ea5fb2ed242dddaf5ab8 (diff) | |
download | trollius-41a067f638699b8a01f0e16aa3b6e94a1a0b9566.tar.gz |
Tulip issue 184: Fix test_pipe() on Windows
Pass explicitly the event loop to StreamReaderProtocol.
-rw-r--r-- | tests/test_windows_events.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_windows_events.py b/tests/test_windows_events.py index 9b264a6..f9b3dd1 100644 --- a/tests/test_windows_events.py +++ b/tests/test_windows_events.py @@ -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) |