We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c188759 commit a79e330Copy full SHA for a79e330
tests/test_httpx_async.py
@@ -1215,7 +1215,7 @@ async def test_httpx_query_https_self_cert_fail(
1215
):
1216
from aiohttp import web
1217
from gql.transport.httpx import HTTPXAsyncTransport
1218
- from ssl import SSLCertVerificationError
+ from httpx import ConnectError
1219
1220
async def handler(request):
1221
return web.Response(text=query1_server_answer, content_type="application/json")
@@ -1235,7 +1235,7 @@ async def handler(request):
1235
1236
transport = HTTPXAsyncTransport(url=url, timeout=10, **extra_args)
1237
1238
- with pytest.raises(SSLCertVerificationError) as exc_info:
+ with pytest.raises(ConnectError) as exc_info:
1239
async with Client(transport=transport) as session:
1240
1241
query = gql(query1_str)
0 commit comments