[Python-checkins] Pass _asyncio_internal=True into stream tests on windows (#13442)

Andrew Svetlov webhook-mailer at python.org
Mon May 20 10:39:00 EDT 2019


https://github.com/python/cpython/commit/45a24b85f328ad07296123ebc994553983c7a915
commit: 45a24b85f328ad07296123ebc994553983c7a915
branch: master
author: Andrew Svetlov <andrew.svetlov at gmail.com>
committer: GitHub <noreply at github.com>
date: 2019-05-20T17:38:57+03:00
summary:

Pass _asyncio_internal=True into stream tests on windows (#13442)

files:
M Lib/test/test_asyncio/test_windows_events.py

diff --git a/Lib/test/test_asyncio/test_windows_events.py b/Lib/test/test_asyncio/test_windows_events.py
index 05f85159be0c..e201a0696796 100644
--- a/Lib/test/test_asyncio/test_windows_events.py
+++ b/Lib/test/test_asyncio/test_windows_events.py
@@ -100,9 +100,11 @@ def test_pipe(self):
 
         clients = []
         for i in range(5):
-            stream_reader = asyncio.StreamReader(loop=self.loop)
+            stream_reader = asyncio.StreamReader(loop=self.loop,
+                                                 _asyncio_internal=True)
             protocol = asyncio.StreamReaderProtocol(stream_reader,
-                                                    loop=self.loop)
+                                                    loop=self.loop,
+                                                    _asyncio_internal=True)
             trans, proto = await self.loop.create_pipe_connection(
                 lambda: protocol, ADDRESS)
             self.assertIsInstance(trans, asyncio.Transport)



More information about the Python-checkins mailing list