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

Open Beginner friendly
#17,760 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
85/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Quiet
Tech stack
python
Domain
testing

Research direction

Open tests/transport/test__custom_tls_signer.py and locate the ssl.SSLContext() calls that trigger warnings under Python 3.13. Update those initializations to pass an explicit protocol, then run the relevant test suite and confirm the deprecation warnings no longer appear.

Written by the indexing model from the issue text.

Description

auth effort: low priority: p4 testing type: cleanup

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.

Dominant language
Python
Stars
5.4k
Forks
1.8k
Avg merge
1d 17h
Merged PRs (30d)
93

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from googleapis/google-cloud-python

All issues in googleapis/google-cloud-python

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.