googleapis / googleapis/google-cloud-python

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

未关闭 适合新手
#17,760 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
auth effort: low priority: p4 testing type: cleanup
主要语言
Python
星标
5.4k
派生
1.8k
平均合并
3 天 4 小时
30 天内合并 PR
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 摘要。