tests: Fix aiohttp deprecation warnigns

This commit is contained in:
Yury Selivanov 2016-11-06 15:24:43 -05:00
parent 9f87336768
commit 3c3c8dcdbb
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ class _TestAioHTTP:
async def test():
for addr in (('localhost', port),
('127.0.0.1', port)):
with aiohttp.ClientSession() as client:
async with aiohttp.ClientSession() as client:
async with client.get('http://{}:{}'.format(*addr)) as r:
self.assertEqual(r.status, 200)
self.assertEqual(len(await r.text()), len(PAYLOAD))