[Python-checkins] cpython (3.4): Tulip issue 184: Fix test_pipe() on Windows

victor.stinner python-checkins at python.org
Tue Jan 13 16:15:12 CET 2015


https://hg.python.org/cpython/rev/0387862a5675
changeset:   94126:0387862a5675
branch:      3.4
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Tue Jan 13 16:13:06 2015 +0100
summary:
  Tulip issue 184: Fix test_pipe() on Windows

Pass explicitly the event loop to StreamReaderProtocol.

files:
  Lib/test/test_asyncio/test_windows_events.py |  3 ++-
  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
--- a/Lib/test/test_asyncio/test_windows_events.py
+++ b/Lib/test/test_asyncio/test_windows_events.py
@@ -67,7 +67,8 @@
         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)

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list