From ffc4dca502f7b129616077ed740d241e4d1e48fd Mon Sep 17 00:00:00 2001 From: Stefan Tjarks Date: Wed, 26 Sep 2018 00:30:11 -0700 Subject: [PATCH] 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 --- vcr/stubs/aiohttp_stubs/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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