googleapis / googleapis/google-cloud-python

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

オープン 初心者向け
#17,760 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
auth effort: low priority: p4 testing type: cleanup
主要言語
Python
スター
5.4k
フォーク
1.8k
平均マージ
3日 4時間
マージ済み PR(30日)
122

説明

Running the test suite on Python 3.13 surfaces `DeprecationWarning`s 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`.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
python
領域
testing
issue の種類
バグ
難易度
2/5
見積もり時間
1〜3時間
活発さ
静か
明瞭さ
明確に書かれている
初心者へのやさしさ
85/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。