summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_asyncio
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-01-13 15:13:06 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2015-01-13 15:13:06 (GMT)
commit9036e49ba1acdd49ed7aa86a228a2657ca72c336 (patch)
treea3f0b219047d9095ff2c3b767069e534af1d74d5 /Lib/test/test_asyncio
parentb86a96802bf7e054b7b219ee7e9c8fa2444f94d6 (diff)
downloadcpython-9036e49ba1acdd49ed7aa86a228a2657ca72c336.zip
cpython-9036e49ba1acdd49ed7aa86a228a2657ca72c336.tar.gz
cpython-9036e49ba1acdd49ed7aa86a228a2657ca72c336.tar.bz2
Tulip issue 184: Fix test_pipe() on Windows
Pass explicitly the event loop to StreamReaderProtocol.
Diffstat (limited to 'Lib/test/test_asyncio')
-rw-r--r--Lib/test/test_asyncio/test_windows_events.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_asyncio/test_windows_events.py b/Lib/test/test_asyncio/test_windows_events.py
index 9b264a6..f9b3dd1 100644
--- a/Lib/test/test_asyncio/test_windows_events.py
+++ b/Lib/test/test_asyncio/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)