From: Stefan Tjarks Date: Wed, 26 Sep 2018 07:30:11 +0000 (-0700) Subject: ClientResponse.release isn't a coroutine X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=ffc4dca502f7b129616077ed740d241e4d1e48fd;p=vcrpy.git ClientResponse.release isn't a coroutine Therefore it should not be one in the MockClientResponse class. https://github.com/aio-libs/aiohttp/blob/d0af887e3121d677b32339adff6540b6de01d167/aiohttp/client_reqrep.py#L832 --- diff --git a/vcr/stubs/aiohttp_stubs/__init__.py b/vcr/stubs/aiohttp_stubs/__init__.py index 38f337e..489fcf0 100644 --- a/vcr/stubs/aiohttp_stubs/__init__.py +++ b/vcr/stubs/aiohttp_stubs/__init__.py @@ -34,7 +34,7 @@ class MockClientResponse(ClientResponse): async def read(self): return self._body - async def release(self): + def release(self): pass