Bumps aiohttp to 3.6.0 (#26728)
This commit is contained in:
1 parent
468deef326
commit
a8a485abf7
6 files changed
+51
-17
No files matched your search
@@ -244,8 +244,12 @@ class AiohttpClientMockResponse:
|
||||
def raise_for_status(self):
|
||||
"""Raise error if status is 400 or higher."""
|
||||
if self.status >= 400:
|
||||
request_info = mock.Mock(real_url="http://example.com")
|
||||
raise ClientResponseError(
|
||||
None, None, code=self.status, headers=self.headers
|
||||
request_info=request_info,
|
||||
history=None,
|
||||
code=self.status,
|
||||
headers=self.headers,
|
||||
)
|
||||
|
||||
def close(self):
|
||||
|
||||
Reference in new issue
Block a user