]> granicus.if.org Git - python/commit
asyncio, Tulip issue 137: In debug mode, save traceback where Future, Task and
authorVictor Stinner <victor.stinner@gmail.com>
Fri, 27 Jun 2014 11:52:20 +0000 (13:52 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Fri, 27 Jun 2014 11:52:20 +0000 (13:52 +0200)
commit80f53aa9a0b2af28c9d8052c46b452cccb8e0b41
tree2f1714ab75a7d22f9c719a5890459278d4d581fa
parentbbd96c6f47046e11f47de06550dcd1c816aad71c
asyncio, Tulip issue 137: In debug mode, save traceback where Future, Task and
Handle objects are created. Pass the traceback to call_exception_handler() in
the 'source_traceback' key.

The traceback is truncated to hide internal calls in asyncio, show only the
traceback from user code.

Add tests for the new source_traceback, and a test for the 'Future/Task
exception was never retrieved' log.
Lib/asyncio/base_events.py
Lib/asyncio/events.py
Lib/asyncio/futures.py
Lib/asyncio/tasks.py
Lib/test/test_asyncio/test_base_events.py
Lib/test/test_asyncio/test_events.py
Lib/test/test_asyncio/test_futures.py
Lib/test/test_asyncio/test_tasks.py