From: Luiz Menezes Date: Wed, 2 May 2018 12:07:14 +0000 (-0300) Subject: Ignore syntax error on async stuff X-Git-Tag: v1.12.0~1^2~14 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=f1f8ce2af479f931c9e9143f400ec2a811191fb7;p=vcrpy.git Ignore syntax error on async stuff --- diff --git a/tests/integration/aiohttp_utils.py b/tests/integration/aiohttp_utils.py index edf56bf..1569e7c 100644 --- a/tests/integration/aiohttp_utils.py +++ b/tests/integration/aiohttp_utils.py @@ -1,8 +1,8 @@ import aiohttp -async def aiohttp_request(loop, method, url, output='text', **kwargs): - with aiohttp.ClientSession(loop=loop) as session: +async def aiohttp_request(loop, method, url, output='text', **kwargs): # NOQA: E999 + async with aiohttp.ClientSession(loop=loop) as session: # NOQA: E999 response = await session.request(method, url, **kwargs) # NOQA: E999 if output == 'text': content = await response.text() # NOQA: E999