From: Andrew Svetlov Date: Mon, 20 May 2019 14:38:57 +0000 (+0300) Subject: Pass _asyncio_internal=True into stream tests on windows (#13442) X-Git-Tag: v3.8.0b1~289 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=45a24b85f328ad07296123ebc994553983c7a915;p=thirdparty%2FPython%2Fcpython.git Pass _asyncio_internal=True into stream tests on windows (#13442) --- 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 @@ class ProactorTests(test_utils.TestCase): 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)