diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2014-07-07 13:46:09 +0300 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2014-07-07 13:46:09 +0300 |
commit | 3bc13cc8b0b85f989b8da9c5718fc5319ad06248 (patch) | |
tree | 52fc5995a7cc1ccafce61ef403b7dea1a4ff342d /Lib/test/test_asyncio/test_tasks.py | |
parent | 667abc7d42e87b87338981276d0eac9895d4abf4 (diff) | |
parent | e50dafcd636ba32db890600164698bb070d40d97 (diff) | |
download | cpython-git-3bc13cc8b0b85f989b8da9c5718fc5319ad06248.tar.gz |
Merge heads
Diffstat (limited to 'Lib/test/test_asyncio/test_tasks.py')
-rw-r--r-- | Lib/test/test_asyncio/test_tasks.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_asyncio/test_tasks.py b/Lib/test/test_asyncio/test_tasks.py index 83b7e61fdb..eaef05b50d 100644 --- a/Lib/test/test_asyncio/test_tasks.py +++ b/Lib/test/test_asyncio/test_tasks.py @@ -211,6 +211,10 @@ class TaskTests(test_utils.TestCase): coro = ('%s() at %s:%s' % (coro_qualname, code.co_filename, code.co_firstlineno)) + # test repr(CoroWrapper) + if coroutines._DEBUG: + self.assertEqual(repr(gen), '<CoroWrapper %s>' % coro) + # test pending Task t = asyncio.Task(gen, loop=self.loop) t.add_done_callback(Dummy()) |