mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-34687: Make asynico use ProactorEventLoop by default (GH-9538)
This commit is contained in:
parent
c8c0249c9e
commit
6ea29c5e90
7 changed files with 30 additions and 14 deletions
|
@ -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')
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue