cpython: 62948164ff94 (original) (raw)

Mercurial > cpython

changeset 103831:62948164ff94 3.6

Merge 3.5 (issue #27906) [#27906]

Yury Selivanov yury@magic.io
date Thu, 15 Sep 2016 14:14:48 -0400
parents b368d78432af(current diff)1dcfafed3cb0(diff)
children ac13bf1967b5 f2fdb624074a
files Lib/asyncio/base_events.py Lib/asyncio/proactor_events.py Lib/asyncio/selector_events.py Misc/NEWS
diffstat 6 files changed, 60 insertions(+), 36 deletions(-)[+] [-] Lib/asyncio/base_events.py 2 Lib/asyncio/proactor_events.py 2 Lib/asyncio/selector_events.py 73 Lib/test/test_asyncio/test_base_events.py 2 Lib/test/test_asyncio/test_selector_events.py 14 Misc/NEWS 3

line wrap: on

line diff

--- a/Lib/asyncio/base_events.py +++ b/Lib/asyncio/base_events.py @@ -1035,7 +1035,7 @@ class BaseEventLoop(events.AbstractEvent for sock in sockets: sock.listen(backlog) sock.setblocking(False)

--- a/Lib/asyncio/proactor_events.py +++ b/Lib/asyncio/proactor_events.py @@ -495,7 +495,7 @@ class BaseProactorEventLoop(base_events. self._csock.send(b'\0') def _start_serving(self, protocol_factory, sock,

def loop(f=None): try:

--- a/Lib/asyncio/selector_events.py +++ b/Lib/asyncio/selector_events.py @@ -162,43 +162,50 @@ class BaseSelectorEventLoop(base_events. exc_info=True) def _start_serving(self, protocol_factory, sock,

def _accept_connection(self, protocol_factory, sock,

@coroutine def _accept_connection2(self, protocol_factory, conn, extra,

--- a/Lib/test/test_asyncio/test_base_events.py +++ b/Lib/test/test_asyncio/test_base_events.py @@ -1634,7 +1634,7 @@ class BaseEventLoopWithSelectorTests(tes self.loop.call_later.assert_called_with(constants.ACCEPT_RETRY_DELAY, # self.loop._start_serving mock.ANY,

def test_call_coroutine(self): @asyncio.coroutine

--- a/Lib/test/test_asyncio/test_selector_events.py +++ b/Lib/test/test_asyncio/test_selector_events.py @@ -687,6 +687,20 @@ class BaseSelectorEventLoopTests(test_ut selectors.EVENT_WRITE)]) self.loop.remove_writer.assert_called_with(1)

+ class SelectorTransportTests(test_utils.TestCase):

--- a/Misc/NEWS +++ b/Misc/NEWS @@ -418,6 +418,9 @@ Library