@@ -1230,16 +1230,6 @@ def test_revoke_successfully(self):
12301230 )
12311231 _ = credentials .revoke (None )
12321232
1233- @mock .patch .dict (os .environ , {"GOOGLE_EXTERNAL_ACCOUNT_ALLOW_EXECUTABLES" : "1" })
1234- def test_retrieve_subject_token_python_2 (self ):
1235- with mock .patch ("sys.version_info" , (2 , 7 )):
1236- credentials = self .make_pluggable (credential_source = self .CREDENTIAL_SOURCE )
1237-
1238- with pytest .raises (exceptions .RefreshError ) as excinfo :
1239- _ = credentials .retrieve_subject_token (None )
1240-
1241- assert excinfo .match (r"Pluggable auth is only supported for python 3.7+" )
1242-
12431233 @mock .patch .dict (os .environ , {"GOOGLE_EXTERNAL_ACCOUNT_ALLOW_EXECUTABLES" : "1" })
12441234 def test_retrieve_subject_token_with_quoted_command (self ):
12451235 command_with_spaces = '"/path/with spaces/to/executable" "arg with spaces"'
@@ -1269,17 +1259,3 @@ def test_retrieve_subject_token_with_quoted_command(self):
12691259 stderr = subprocess .STDOUT ,
12701260 env = mock .ANY ,
12711261 )
1272-
1273- @mock .patch .dict (os .environ , {"GOOGLE_EXTERNAL_ACCOUNT_ALLOW_EXECUTABLES" : "1" })
1274- def test_revoke_subject_token_python_2 (self ):
1275- with mock .patch ("sys.version_info" , (2 , 7 )):
1276- credentials = self .make_pluggable (
1277- audience = WORKFORCE_AUDIENCE ,
1278- credential_source = self .CREDENTIAL_SOURCE ,
1279- interactive = True ,
1280- )
1281-
1282- with pytest .raises (exceptions .RefreshError ) as excinfo :
1283- _ = credentials .revoke (None )
1284-
1285- assert excinfo .match (r"Pluggable auth is only supported for python 3.7+" )
0 commit comments