[Python-checkins] cpython (merge 3.5 -> default): Merge 3.5

yury.selivanov python-checkins at python.org
Wed Jun 24 16:55:49 CEST 2015


https://hg.python.org/cpython/rev/349dd39ee2cc
changeset:   96662:349dd39ee2cc
parent:      96660:95edcac4b1c2
parent:      96661:8f4e738cb07f
user:        Yury Selivanov <yselivanov at sprymix.com>
date:        Wed Jun 24 10:55:33 2015 -0400
summary:
  Merge 3.5

files:
  Lib/test/test_asyncio/test_pep492.py |  7 +++++++
  1 files changed, 7 insertions(+), 0 deletions(-)


diff --git a/Lib/test/test_asyncio/test_pep492.py b/Lib/test/test_asyncio/test_pep492.py
--- a/Lib/test/test_asyncio/test_pep492.py
+++ b/Lib/test/test_asyncio/test_pep492.py
@@ -156,6 +156,13 @@
         self.loop.set_debug(True)
         self.loop.run_until_complete(start())
 
+        async def start():
+            foo_coro = foo()
+            task = asyncio.ensure_future(foo_coro, loop=self.loop)
+            self.assertRegex(repr(task), r'Task.*foo.*running')
+
+        self.loop.run_until_complete(start())
+
 
 if __name__ == '__main__':
     unittest.main()

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list