Skip to content

Commit 45a24b8

Browse files
authored
Pass _asyncio_internal=True into stream tests on windows (#13442)
1 parent 425717f commit 45a24b8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Lib/test/test_asyncio/test_windows_events.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,11 @@ async def _test_pipe(self):
100100

101101
clients = []
102102
for i in range(5):
103-
stream_reader = asyncio.StreamReader(loop=self.loop)
103+
stream_reader = asyncio.StreamReader(loop=self.loop,
104+
_asyncio_internal=True)
104105
protocol = asyncio.StreamReaderProtocol(stream_reader,
105-
loop=self.loop)
106+
loop=self.loop,
107+
_asyncio_internal=True)
106108
trans, proto = await self.loop.create_pipe_connection(
107109
lambda: protocol, ADDRESS)
108110
self.assertIsInstance(trans, asyncio.Transport)

0 commit comments

Comments
 (0)