summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_asyncio/test_tasks.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-06-30 12:39:11 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2014-06-30 12:39:11 (GMT)
commitb75380f3336db6dae82e8f75a2a5b020ae8fd377 (patch)
tree8779c580d7fcc1e10467da07586d87e2116c6b58 /Lib/test/test_asyncio/test_tasks.py
parenta6ec5ee3c8fcc7ca28db737a0ad60d4d63b116c0 (diff)
downloadcpython-b75380f3336db6dae82e8f75a2a5b020ae8fd377.zip
cpython-b75380f3336db6dae82e8f75a2a5b020ae8fd377.tar.gz
cpython-b75380f3336db6dae82e8f75a2a5b020ae8fd377.tar.bz2
asyncio: sync with Tulip
- Sort imports - Simplify/optimize iscoroutine(). Inline inspect.isgenerator(obj): replace it with isinstance(obj, types.GeneratorType) - CoroWrapper: check at runtime if Python has the yield-from bug #21209. If Python has the bug, check if CoroWrapper.send() was called by yield-from to decide if parameters must be unpacked or not. - Fix "Task was destroyed but it is pending!" warning in test_task_source_traceback()
Diffstat (limited to 'Lib/test/test_asyncio/test_tasks.py')
-rw-r--r--Lib/test/test_asyncio/test_tasks.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_asyncio/test_tasks.py b/Lib/test/test_asyncio/test_tasks.py
index d509768..a5706ae 100644
--- a/Lib/test/test_asyncio/test_tasks.py
+++ b/Lib/test/test_asyncio/test_tasks.py
@@ -1621,6 +1621,7 @@ class TaskTests(test_utils.TestCase):
(__file__,
lineno,
'test_task_source_traceback'))
+ self.loop.run_until_complete(task)
class GatherTestsBase: