googleapis / googleapis/google-cloud-python
google-auth: Fix Python 3.13 deprecation warnings for ssl.SSLContext in test suite
- Vorherrschende Sprache
- Python
- Sterne
- 5.4k
- Forks
- 1.8k
- Ø Merge
- 3 T. 4 Std.
- Gemergte PRs (30 T.)
- 122
Beschreibung
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`.
Beitragsleitfaden
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- python
- Bereich
- testing
- Issue-Typ
- Bug
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Aktivitätsstatus
- Ruhig
- Klarheit
- Klar beschrieben
- Anfängerfreundlichkeit
- 85/100