googleapis / googleapis/google-cloud-python

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

Abierto Apto para principiantes
#17,760 0 comentarios 0 reacciones 0 asignados Ver en GitHub
auth effort: low priority: p4 testing type: cleanup
Lenguaje dominante
Python
Estrellas
5.4k
Forks
1.8k
Merge medio
3 d 4 h
PR fusionados (30 d)
122

Descripción

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`.

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
python
Área
testing
Tipo de issue
Error
Dificultad
2/5
Tiempo estimado
1-3 horas
Estado de actividad
Tranquilo
Claridad
Bien especificado
Aptitud para principiantes
85/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.