Unverified Kaydet (Commit) 45a24b85 authored tarafından Andrew Svetlov's avatar Andrew Svetlov Kaydeden (comit) GitHub

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

üst 425717fe
...@@ -100,9 +100,11 @@ class ProactorTests(test_utils.TestCase): ...@@ -100,9 +100,11 @@ class ProactorTests(test_utils.TestCase):
clients = [] clients = []
for i in range(5): 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, protocol = asyncio.StreamReaderProtocol(stream_reader,
loop=self.loop) loop=self.loop,
_asyncio_internal=True)
trans, proto = await self.loop.create_pipe_connection( trans, proto = await self.loop.create_pipe_connection(
lambda: protocol, ADDRESS) lambda: protocol, ADDRESS)
self.assertIsInstance(trans, asyncio.Transport) self.assertIsInstance(trans, asyncio.Transport)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment