summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2019-05-20 14:38:57 (GMT)
committerGitHub <noreply@github.com>2019-05-20 14:38:57 (GMT)
commit45a24b85f328ad07296123ebc994553983c7a915 (patch)
tree02214c3baa7c718e81322e50259dfbd9350f1d95
parent425717fee1c72df464c9f85b9a8d32b9197d1035 (diff)
downloadcpython-45a24b85f328ad07296123ebc994553983c7a915.zip
cpython-45a24b85f328ad07296123ebc994553983c7a915.tar.gz
cpython-45a24b85f328ad07296123ebc994553983c7a915.tar.bz2
Pass _asyncio_internal=True into stream tests on windows (#13442)
-rw-r--r--Lib/test/test_asyncio/test_windows_events.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/Lib/test/test_asyncio/test_windows_events.py b/Lib/test/test_asyncio/test_windows_events.py
index 05f8515..e201a06 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)