summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio/events.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-02-19 22:15:02 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2014-02-19 22:15:02 (GMT)
commit0f3e6bca1b7478027843fe6181f6b12f4c1514ed (patch)
tree0f997927e36175ab273d42bb947d4eee8001fc46 /Lib/asyncio/events.py
parentff385b89f40cfdfb6ceab41acfa89fa8594318f6 (diff)
downloadcpython-0f3e6bca1b7478027843fe6181f6b12f4c1514ed.zip
cpython-0f3e6bca1b7478027843fe6181f6b12f4c1514ed.tar.gz
cpython-0f3e6bca1b7478027843fe6181f6b12f4c1514ed.tar.bz2
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.
Diffstat (limited to 'Lib/asyncio/events.py')
-rw-r--r--Lib/asyncio/events.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/Lib/asyncio/events.py b/Lib/asyncio/events.py
index 1030c04..5362f05 100644
--- a/Lib/asyncio/events.py
+++ b/Lib/asyncio/events.py
@@ -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."""