Skip to content

google-auth: Fix Python 3.13 deprecation warnings for ssl.SSLContext in test suite #17760

Description

@nbayati

Running the test suite on Python 3.13 surfaces DeprecationWarnings due to initializing ssl.SSLContext() without a protocol argument.

This occurs in multiple places in tests/transport/test__custom_tls_signer.py. To resolve these warnings and ensure compatibility with future Python releases, we should update these calls to explicitly pass a protocol, such as ssl.PROTOCOL_TLS_CLIENT.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions