From: Victor Stinner Date: Mon, 21 Sep 2015 20:29:43 +0000 (+0200) Subject: Merge 3.5 (Issue #23630, fix test_asyncio) X-Git-Tag: v3.6.0a1~1489 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1d59fee294d0bca792dacca4d5cc7dd21fedec95;p=python Merge 3.5 (Issue #23630, fix test_asyncio) --- diff --git a/Lib/test/test_asyncio/test_events.py b/Lib/test/test_asyncio/test_events.py index 3488101689..9801d22223 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)