Skip to content

Commit

Permalink
Ignore the DeprecationWarning for enable_cleanup_closed
Browse files Browse the repository at this point in the history
We still need the argument for older Python releases, but newer releases
will emit a DeprecationWarning.

See: aio-libs/aiohttp#9726
  • Loading branch information
stefanor authored and sethmlarson committed Jan 10, 2025
1 parent 5ae2476 commit 911ceab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 911ceab

Please sign in to comment.