bpo-34687: Make asynico use ProactorEventLoop by default (GH-9538)

This commit is contained in:
Victor Stinner 2018-09-25 08:27:08 -07:00 committed by Yury Selivanov
parent c8c0249c9e
commit 6ea29c5e90
7 changed files with 30 additions and 14 deletions

View file

@ -1014,7 +1014,7 @@ class BaseEventLoopWithSelectorTests(test_utils.TestCase):
def setUp(self):
super().setUp()
self.loop = asyncio.new_event_loop()
self.loop = asyncio.SelectorEventLoop()
self.set_event_loop(self.loop)
@mock.patch('socket.getnameinfo')

View file

@ -816,7 +816,8 @@ os.close(fd)
addr = q.get()
# Should not be stuck in an infinite loop.
with self.assertRaises((ConnectionResetError, BrokenPipeError)):
with self.assertRaises((ConnectionResetError, ConnectionAbortedError,
BrokenPipeError)):
self.loop.run_until_complete(client(*addr))
# Clean up the thread. (Only on success; on failure, it may