Skip to content

Commit

Permalink
Clean client session test traceback
Browse files Browse the repository at this point in the history
  • Loading branch information
kserhii committed Dec 10, 2016
1 parent cde1672 commit c2d78cd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_client_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit c2d78cd

Please sign in to comment.