From 77c106442966e5d72af3efdf03a47a652899f116 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89amonn=20McManus?= Date: Fri, 19 Jun 2015 13:28:39 -0700 Subject: [PATCH] Remove unwanted side-effect in test_oauth2client introduced by #196 --- tests/test_oauth2client.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/test_oauth2client.py b/tests/test_oauth2client.py index da5369c40..e0819fd2e 100755 --- a/tests/test_oauth2client.py +++ b/tests/test_oauth2client.py @@ -583,9 +583,15 @@ def setUp(self): user_agent, revoke_uri=GOOGLE_REVOKE_URI) # Provoke a failure if @util.positional is not respected. + self.old_positional_enforcement = ( + oauth2client_util.positional_parameters_enforcement) oauth2client_util.positional_parameters_enforcement = ( oauth2client_util.POSITIONAL_EXCEPTION) + def tearDown(self): + oauth2client_util.positional_parameters_enforcement = ( + self.old_positional_enforcement) + def test_token_refresh_success(self): for status_code in REFRESH_STATUS_CODES: token_response = {'access_token': '1/3w', 'expires_in': 3600}