From 3c3c8dcdbbd8c11a1a8d4303823cc91d99496258 Mon Sep 17 00:00:00 2001 From: Yury Selivanov Date: Sun, 6 Nov 2016 15:24:43 -0500 Subject: [PATCH] tests: Fix aiohttp deprecation warnigns --- tests/test_aiohttp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_aiohttp.py b/tests/test_aiohttp.py index 4b24c27..f880385 100644 --- a/tests/test_aiohttp.py +++ b/tests/test_aiohttp.py @@ -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))