]> khamidou — GitHub mirrors - vcrpy.git/commitdiff
ClientResponse.release isn't a coroutine
authorStefan Tjarks <stefan.tjarks@eventbase.com>
Wed, 26 Sep 2018 07:30:11 +0000 (00:30 -0700)
committerStefan Tjarks <stefan.tjarks@eventbase.com>
Wed, 26 Sep 2018 07:30:11 +0000 (00:30 -0700)
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

index 38f337e5f369cbcd9d7402336c6094a6121354a0..489fcf036fa47658c9d38e4f56205cf520a191a1 100644 (file)
@@ -34,7 +34,7 @@ class MockClientResponse(ClientResponse):
     async def read(self):
         return self._body
 
-    async def release(self):
+    def release(self):
         pass