diff --git a/aioresponses/core.py b/aioresponses/core.py index 6f1828e..2bb6d57 100644 --- a/aioresponses/core.py +++ b/aioresponses/core.py @@ -156,10 +156,7 @@ def _build_response(self, url: 'Union[URL, str]', method=method, headers=CIMultiDictProxy(CIMultiDict(**request_headers)), ) - if AIOHTTP_VERSION >= parse_version("3.9.0b1"): - kwargs['writer'] = AsyncMock()() - else: - kwargs['writer'] = Mock() + kwargs['writer'] = None kwargs['continue100'] = None kwargs['timer'] = TimerNoop() kwargs['traces'] = []