Skip to content

Commit 60cc007

Browse files
committed
Fix tests with aiohttp >= 3.10.0
aiohttp 3.10.0 removed the ability to create `aiohttp.ClientSession` instances without a running event loop (see aio-libs/aiohttp#8583), but one of yalexs's tests relied on that.
1 parent ecc0c0a commit 60cc007

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_api_async.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1187,7 +1187,7 @@ def response_callback(url, **kwargs):
11871187
)
11881188
assert last_args["json"] == {"code": "123456", "email": "emailaddress"}
11891189

1190-
def test__raise_response_exceptions(self):
1190+
async def test__raise_response_exceptions(self):
11911191
loop = mock.Mock()
11921192
request_info = mock.Mock()
11931193
request_info.status.return_value = 428

0 commit comments

Comments
 (0)