summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_asyncio/test_tasks.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2013-12-19 21:42:40 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2013-12-19 21:42:40 (GMT)
commit4c3c699e623ac8d942a4ede93b13d8dc4146e0ec (patch)
tree83c2a34c6e9041756e5803544a915f6a1a6274c1 /Lib/test/test_asyncio/test_tasks.py
parent994bf4332f03e2f7a7c642337853404f1f192071 (diff)
downloadcpython-4c3c699e623ac8d942a4ede93b13d8dc4146e0ec.zip
cpython-4c3c699e623ac8d942a4ede93b13d8dc4146e0ec.tar.gz
cpython-4c3c699e623ac8d942a4ede93b13d8dc4146e0ec.tar.bz2
Close #19967: Thanks to the PEP 442, asyncio.Future can use a destructor in
Python 3.4 to log "uncatched" exceptions, instead of the dedicated _TracebackLogger class.
Diffstat (limited to 'Lib/test/test_asyncio/test_tasks.py')
-rw-r--r--Lib/test/test_asyncio/test_tasks.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_asyncio/test_tasks.py b/Lib/test/test_asyncio/test_tasks.py
index 5470da1..e303f50 100644
--- a/Lib/test/test_asyncio/test_tasks.py
+++ b/Lib/test/test_asyncio/test_tasks.py
@@ -1352,6 +1352,7 @@ class GatherTestsBase:
c.set_result(3)
d.cancel()
e.set_exception(RuntimeError())
+ e.exception()
def test_return_exceptions(self):
a, b, c, d = [futures.Future(loop=self.one_loop) for i in range(4)]
@@ -1431,6 +1432,7 @@ class FutureGatherTests(GatherTestsBase, unittest.TestCase):
c.set_result(3)
d.cancel()
e.set_exception(RuntimeError())
+ e.exception()
def test_result_exception_one_cancellation(self):
a, b, c, d, e, f = [futures.Future(loop=self.one_loop)