-
Notifications
You must be signed in to change notification settings - Fork 431
Conversation
@@ -1,6 +1,12 @@ | |||
language: python | |||
python: 2.7 | |||
sudo: false | |||
# A hack to install 3.5, until Travis-CI includes it |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
I was using 80 characters, since it looked like a few previous commits were using that. I'll switch it to 72. I'll also add an issue, then reference it in the |
@@ -151,13 +151,13 @@ def test_token_refresh_store_expires_soon(self): | |||
access_token = '1/3w' | |||
token_response = {'access_token': access_token, 'expires_in': 3600} | |||
http = HttpMockSequence([ | |||
({'status': str(http_client.UNAUTHORIZED)}, | |||
({'status': str(int(http_client.UNAUTHORIZED))}, |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
In Python 3.5, `http.HTTPStatus` was added, previously HTTP statuses were int. Casting `http.HTTPStatus` as int to maintain backwards maintainability.
Changes made, just waiting for Travis. |
Thanks, this looks good to merge once travis passes. |
In Python 3.5,
http.HTTPStatus
was added, previously HTTP statuses were int.Casting
http.HTTPStatus
as int to maintain backwards maintainability.