From: Victor Stinner Date: Mon, 21 Sep 2015 20:28:44 +0000 (+0200) Subject: Issue #23630: Fix test_asyncio on Windows X-Git-Tag: v3.5.1rc1~306^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=582b17c2c5b876fe62cd22101540d907747069a9;p=thirdparty%2FPython%2Fcpython.git Issue #23630: Fix test_asyncio on Windows The proactor event loop requires also to mock loop._stop_serving. --- diff --git a/Lib/test/test_asyncio/test_events.py b/Lib/test/test_asyncio/test_events.py index 34881016891b..9801d22223b0 100644 --- a/Lib/test/test_asyncio/test_events.py +++ b/Lib/test/test_asyncio/test_events.py @@ -764,6 +764,7 @@ class EventLoopTestsMixin: 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)