Skip to content

Commit

Permalink
chore: Remove enable_cleanup_closed parameter for aiohttp
Browse files Browse the repository at this point in the history
No longer required due to python/cpython#118960
  • Loading branch information
timo-reymann committed Dec 2, 2024
1 parent 8d6d0b7 commit bc7cf8a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import platform
import socket
import ssl
import sys
import tempfile
from dataclasses import dataclass
from operator import attrgetter
Expand Down Expand Up @@ -301,7 +302,7 @@ async def test_sslcontext_api_success_async(host):
ctx = truststore.SSLContext(ssl.PROTOCOL_TLS_CLIENT)
# connector avoids https://github.com/aio-libs/aiohttp/issues/5426
async with aiohttp.ClientSession(
connector=aiohttp.TCPConnector(force_close=True, enable_cleanup_closed=True)
connector=aiohttp.TCPConnector(force_close=True)
) as http:
resp = await http.request("GET", f"https://{host}", ssl=ctx)

Expand Down Expand Up @@ -330,7 +331,7 @@ async def test_sslcontext_api_failures_async(failure):
ctx.verify_flags |= ssl.VERIFY_CRL_CHECK_CHAIN
# connector avoids https://github.com/aio-libs/aiohttp/issues/5426
async with aiohttp.ClientSession(
connector=aiohttp.TCPConnector(force_close=True, enable_cleanup_closed=True)
connector=aiohttp.TCPConnector(force_close=True)
) as http:
with pytest.raises(
aiohttp.client_exceptions.ClientConnectorCertificateError
Expand Down

0 comments on commit bc7cf8a

Please sign in to comment.