Skip to content

Commit 911ceab

Browse files
stefanorsethmlarson
authored andcommitted
Ignore the DeprecationWarning for enable_cleanup_closed
We still need the argument for older Python releases, but newer releases will emit a DeprecationWarning. See: aio-libs/aiohttp#9726
1 parent 5ae2476 commit 911ceab

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/test_api.py

+2
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,7 @@ def test_sslcontext_api_success(host):
296296

297297

298298
@successful_hosts
299+
@pytest.mark.filterwarnings("ignore:enable_cleanup_closed ignored.*:DeprecationWarning")
299300
@pytest.mark.asyncio
300301
async def test_sslcontext_api_success_async(host):
301302
ctx = truststore.SSLContext(ssl.PROTOCOL_TLS_CLIENT)
@@ -323,6 +324,7 @@ def test_sslcontext_api_failures(failure):
323324

324325

325326
@failure_hosts
327+
@pytest.mark.filterwarnings("ignore:enable_cleanup_closed ignored.*:DeprecationWarning")
326328
@pytest.mark.asyncio
327329
async def test_sslcontext_api_failures_async(failure):
328330
ctx = truststore.SSLContext(ssl.PROTOCOL_TLS_CLIENT)

0 commit comments

Comments
 (0)