cpython: 4019694a1ce4 (original) (raw)

Mercurial > cpython

changeset 86497:4019694a1ce4

Issue #19299: fix refleak test failures in test_asyncio [#19299]

Antoine Pitrou solipsis@pitrou.net
date Sun, 20 Oct 2013 00:54:10 +0200
parents b4a325275fb0
children e3ec6b17260c
files Lib/asyncio/base_events.py Lib/asyncio/proactor_events.py Lib/asyncio/selector_events.py
diffstat 3 files changed, 10 insertions(+), 0 deletions(-)[+] [-] Lib/asyncio/base_events.py 8 Lib/asyncio/proactor_events.py 1 Lib/asyncio/selector_events.py 1

line wrap: on

line diff

--- a/Lib/asyncio/base_events.py +++ b/Lib/asyncio/base_events.py @@ -185,6 +185,14 @@ class BaseEventLoop(events.AbstractEvent """ self.call_soon(_raise_stop_error)

+ def is_running(self): """Returns running status of event loop.""" return self._running

--- a/Lib/asyncio/proactor_events.py +++ b/Lib/asyncio/proactor_events.py @@ -276,6 +276,7 @@ class BaseProactorEventLoop(base_events. self._proactor.close() self._proactor = None self._selector = None

def sock_recv(self, sock, n): return self._proactor.recv(sock, n)

--- a/Lib/asyncio/selector_events.py +++ b/Lib/asyncio/selector_events.py @@ -56,6 +56,7 @@ class BaseSelectorEventLoop(base_events. self._close_self_pipe() self._selector.close() self._selector = None

def _socketpair(self): raise NotImplementedError