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

yury.selivanov python-checkins at python.org
Wed Aug 5 20:48:29 CEST 2015


https://hg.python.org/cpython/rev/301e53491af0
changeset: 97286:301e53491af0
parent: 97284:fe4e2ae492d4
parent: 97285:17129db11be3
user: Yury Selivanov <yselivanov at sprymix.com>
date: Wed Aug 05 14:47:47 2015 -0400
summary:
 Merge 3.5 (asyncio)
files:
 Lib/test/test_asyncio/test_pep492.py | 4 ++++
 1 files changed, 4 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
@@ -107,6 +107,10 @@
 
 self.assertTrue(asyncio.iscoroutine(FakeCoro()))
 
+ def test_iscoroutinefunction(self):
+ async def foo(): pass
+ self.assertTrue(asyncio.iscoroutinefunction(foo))
+
 def test_function_returning_awaitable(self):
 class Awaitable:
 def __await__(self):
-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /