Skip to content

Commit 3c3c8dc

Browse files
committed
tests: Fix aiohttp deprecation warnigns
1 parent 9f87336 commit 3c3c8dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_aiohttp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ async def handle_request(self, message, payload):
3939
async def test():
4040
for addr in (('localhost', port),
4141
('127.0.0.1', port)):
42-
with aiohttp.ClientSession() as client:
42+
async with aiohttp.ClientSession() as client:
4343
async with client.get('http://{}:{}'.format(*addr)) as r:
4444
self.assertEqual(r.status, 200)
4545
self.assertEqual(len(await r.text()), len(PAYLOAD))

0 commit comments

Comments
 (0)