Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit a79e330

Browse files
committedFeb 18, 2025·
Fix httpx exception in test
1 parent c188759 commit a79e330

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎tests/test_httpx_async.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1215,7 +1215,7 @@ async def test_httpx_query_https_self_cert_fail(
12151215
):
12161216
from aiohttp import web
12171217
from gql.transport.httpx import HTTPXAsyncTransport
1218-
from ssl import SSLCertVerificationError
1218+
from httpx import ConnectError
12191219

12201220
async def handler(request):
12211221
return web.Response(text=query1_server_answer, content_type="application/json")
@@ -1235,7 +1235,7 @@ async def handler(request):
12351235

12361236
transport = HTTPXAsyncTransport(url=url, timeout=10, **extra_args)
12371237

1238-
with pytest.raises(SSLCertVerificationError) as exc_info:
1238+
with pytest.raises(ConnectError) as exc_info:
12391239
async with Client(transport=transport) as session:
12401240

12411241
query = gql(query1_str)

0 commit comments

Comments
 (0)
Please sign in to comment.