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 | 9d5f74089b11fb2bdc7cbb4abbdafcd931bab029 (patch) | |
| tree | c6784973671fafad48d757bc86d851fc552add9d /tests | |
| parent | d2cafa0a613a054c0696151c88950be4dad5933d (diff) | |
| download | trollius-git-9d5f74089b11fb2bdc7cbb4abbdafcd931bab029.tar.gz | |
Tulip issue 184: Fix test_pipe() on Windows
Pass explicitly the event loop to StreamReaderProtocol.
Diffstat (limited to 'tests')
| -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) |
