]> khamidou — GitHub mirrors - vcrpy.git/commitdiff
Ignore syntax error on async stuff
authorLuiz Menezes <luiz.menezesf@gmail.com>
Wed, 2 May 2018 12:07:14 +0000 (09:07 -0300)
committerLuiz Menezes <luiz.menezesf@gmail.com>
Mon, 7 May 2018 12:25:21 +0000 (09:25 -0300)
tests/integration/aiohttp_utils.py

index edf56bf1cd39ade0747925048cd26ae520c36a32..1569e7cb8c673b670f93e1333573a213032ab1c5 100644 (file)
@@ -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