diff --git a/tests/test_client_session.py b/tests/test_client_session.py index 102d6b82aab..6fd5c190aab 100644 --- a/tests/test_client_session.py +++ b/tests/test_client_session.py @@ -367,11 +367,13 @@ def test_request_ctx_manager_props(loop): with aiohttp.ClientSession(loop=loop) as client: ctx_mgr = client.get('http://example.com') - yield from next(ctx_mgr) + next(ctx_mgr) assert isinstance(ctx_mgr.gi_frame, types.FrameType) assert not ctx_mgr.gi_running assert isinstance(ctx_mgr.gi_code, types.CodeType) + # yield from asyncio.sleep(0.1, loop=loop) + @asyncio.coroutine def test_cookie_jar_usage(loop, test_client):