summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_asyncio
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-09-21 20:28:44 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2015-09-21 20:28:44 (GMT)
commit582b17c2c5b876fe62cd22101540d907747069a9 (patch)
treecab42a5c916b3894bd733ed5f194161b36d5d407 /Lib/test/test_asyncio
parent72e1eae7bbad324115e37809ffd119e66184d560 (diff)
downloadcpython-582b17c2c5b876fe62cd22101540d907747069a9.zip
cpython-582b17c2c5b876fe62cd22101540d907747069a9.tar.gz
cpython-582b17c2c5b876fe62cd22101540d907747069a9.tar.bz2
Issue #23630: Fix test_asyncio on Windows
The proactor event loop requires also to mock loop._stop_serving.
Diffstat (limited to 'Lib/test/test_asyncio')
-rw-r--r--Lib/test/test_asyncio/test_events.py1
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
index 3488101..9801d22 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)