Skip to content

Commit bec5843

Browse files
committed
fix occasion when _refresh_token being treated like the old attribute, as opposed to a methdo
1 parent a283a5b commit bec5843

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

google/auth/external_account_authorized_user.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ def revoke(self, request):
343343
request, self._refresh_token_val, "refresh_token", self._revoke_url
344344
)
345345
self.token = None
346-
self._refresh_token = None
346+
self._refresh_token_val = None
347347

348348
@_helpers.copy_docstring(credentials.Credentials)
349349
def get_cred_info(self):

tests/test_external_account_authorized_user.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ def test_revoke_auth_success(self):
367367
),
368368
)
369369
assert creds.token is None
370-
assert creds._refresh_token is None
370+
assert creds._refresh_token_val is None
371371

372372
def test_revoke_without_revoke_url(self):
373373
request = self.make_mock_request()

0 commit comments

Comments
 (0)