From f951d28ac890063e3ecef56aa8cf851b1152d9dd Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Sun, 29 Jun 2014 00:46:45 +0200 Subject: asyncio: sync with Tulip, add a new asyncio.coroutines module --- Lib/asyncio/test_utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Lib/asyncio/test_utils.py') diff --git a/Lib/asyncio/test_utils.py b/Lib/asyncio/test_utils.py index d9c7ae2d114..94054e70234 100644 --- a/Lib/asyncio/test_utils.py +++ b/Lib/asyncio/test_utils.py @@ -27,6 +27,7 @@ from . import events from . import futures from . import selectors from . import tasks +from .coroutines import coroutine if sys.platform == 'win32': # pragma: no cover @@ -43,7 +44,7 @@ def dummy_ssl_context(): def run_briefly(loop): - @tasks.coroutine + @coroutine def once(): pass gen = once() -- cgit v1.2.3