[Python-checkins] cpython (3.4): Issue #23630: Fix test_asyncio on Windows
victor.stinner
python-checkins at python.org
Mon Sep 21 22:32:30 CEST 2015
https://hg.python.org/cpython/rev/42e7334e0e4c
changeset: 98145:42e7334e0e4c
branch: 3.4
parent: 98142:32e3a9e46f70
user: Victor Stinner <victor.stinner at gmail.com>
date: Mon Sep 21 22:28:44 2015 +0200
summary:
Issue #23630: Fix test_asyncio on Windows
The proactor event loop requires also to mock loop._stop_serving.
files:
Lib/test/test_asyncio/test_events.py | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/Lib/test/test_asyncio/test_events.py b/Lib/test/test_asyncio/test_events.py
--- a/Lib/test/test_asyncio/test_events.py
+++ b/Lib/test/test_asyncio/test_events.py
@@ -764,6 +764,7 @@
for host in hosts]
self.loop.getaddrinfo = getaddrinfo_task
self.loop._start_serving = mock.Mock()
+ self.loop._stop_serving = mock.Mock()
f = self.loop.create_server(lambda: MyProto(self.loop), hosts, 80)
server = self.loop.run_until_complete(f)
self.addCleanup(server.close)
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list