diff options
| author | robot-piglet <[email protected]> | 2025-04-29 13:13:02 +0300 |
|---|---|---|
| committer | robot-piglet <[email protected]> | 2025-04-29 13:30:37 +0300 |
| commit | 43c48235ff779855489561438e0ba08bd8dfb4fc (patch) | |
| tree | 38288f51b582424c1fc554aab78a5e27f303d72a /contrib/python/google-auth/py3/tests/test__oauth2client.py | |
| parent | 46634855c4eebcbf9416afe1bd0448058aa40373 (diff) | |
Intermediate changes
commit_hash:8152cafb3d167774615b4df5bf4470b6269e88a7
Diffstat (limited to 'contrib/python/google-auth/py3/tests/test__oauth2client.py')
| -rw-r--r-- | contrib/python/google-auth/py3/tests/test__oauth2client.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/contrib/python/google-auth/py3/tests/test__oauth2client.py b/contrib/python/google-auth/py3/tests/test__oauth2client.py index 1db595fd9ac..61eaf17c2de 100644 --- a/contrib/python/google-auth/py3/tests/test__oauth2client.py +++ b/contrib/python/google-auth/py3/tests/test__oauth2client.py @@ -117,6 +117,14 @@ def _test__convert_appengine_app_assertion_credentials( app_identity, mock_oauth2client_gae_imports ): + # `oauth2client` requires `cgi` which was removed in Python 3.13 + # See https://github.com/googleapis/oauth2client/blob/50d20532a748f18e53f7d24ccbe6647132c979a9/oauth2client/contrib/appengine.py#L20 + # oauth2client is no longer being updated so this test must be skipped on newer Python Runtimes + if sys.version_info >= (3, 13): # pragma: NO COVER + pytest.skip( + "Skipping test for Python 3.13+ due to oauth2client incompatibility." + ) + import oauth2client.contrib.appengine # type: ignore service_account_id = "service_account_id" @@ -166,6 +174,14 @@ def reset__oauth2client_module(): def _test_import_has_app_engine( mock_oauth2client_gae_imports, reset__oauth2client_module ): + # `oauth2client` requires `cgi` which was removed in Python 3.13 + # See https://github.com/googleapis/oauth2client/blob/50d20532a748f18e53f7d24ccbe6647132c979a9/oauth2client/contrib/appengine.py#L20 + # oauth2client is no longer being updated so this test must be skipped on newer Python Runtimes + if sys.version_info >= (3, 13): # pragma: NO COVER + pytest.skip( + "Skipping test for Python 3.13+ due to oauth2client incompatibility." + ) + importlib.reload(_oauth2client) assert _oauth2client._HAS_APPENGINE |
