summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-01-13 16:14:53 +0100
committerVictor Stinner <victor.stinner@gmail.com>2015-01-13 16:14:53 +0100
commit9d5f74089b11fb2bdc7cbb4abbdafcd931bab029 (patch)
treec6784973671fafad48d757bc86d851fc552add9d /tests
parentd2cafa0a613a054c0696151c88950be4dad5933d (diff)
downloadtrollius-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.py3
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)