asyncio, Tulip issue #136: Add get/set_debug() methods to BaseEventLoopTests.

Add also a PYTHONASYNCIODEBUG environment variable to debug coroutines since
Python startup, to be able to debug coroutines defined directly in the asyncio
module.
This commit is contained in:
Victor Stinner 2014-02-19 23:15:02 +01:00
parent f4558e8b54
commit 7ef60cd8c2
8 changed files with 83 additions and 5 deletions

View file

@ -345,6 +345,14 @@ class AbstractEventLoop:
def call_exception_handler(self, context):
raise NotImplementedError
# Debug flag management.
def get_debug(self):
raise NotImplementedError
def set_debug(self, enabled):
raise NotImplementedError
class AbstractEventLoopPolicy:
"""Abstract policy for accessing the event loop."""