From: Stefano Rivera <stefano@rivera.za.net>
Date: Tue, 7 Jan 2025 20:33:51 -0400
Subject: Ignore the DeprecationWarning for enable_cleanup_closed

We still need the argument for older Python releases, but newer releases
will emit a DeprecationWarning.

See: https://github.com/aio-libs/aiohttp/pull/9726
Forwarded: https://github.com/sethmlarson/truststore/pull/168
---
 tests/test_api.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/test_api.py b/tests/test_api.py
index 5411008..880c94a 100644
--- a/tests/test_api.py
+++ b/tests/test_api.py
@@ -296,6 +296,7 @@ def test_sslcontext_api_success(host):
 
 
 @successful_hosts
+@pytest.mark.filterwarnings("ignore:enable_cleanup_closed ignored.*:DeprecationWarning")
 @pytest.mark.asyncio
 async def test_sslcontext_api_success_async(host):
     ctx = truststore.SSLContext(ssl.PROTOCOL_TLS_CLIENT)
@@ -323,6 +324,7 @@ def test_sslcontext_api_failures(failure):
 
 
 @failure_hosts
+@pytest.mark.filterwarnings("ignore:enable_cleanup_closed ignored.*:DeprecationWarning")
 @pytest.mark.asyncio
 async def test_sslcontext_api_failures_async(failure):
     ctx = truststore.SSLContext(ssl.PROTOCOL_TLS_CLIENT)
