Skip to content

Commit

Permalink
Use new pytest api to keep building with pytest 5 (#353)
Browse files Browse the repository at this point in the history
  • Loading branch information
scarabeusiv authored and busunkim96 committed Jul 25, 2019
1 parent 38166b2 commit 938e5d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/test__default.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def test__load_credentials_from_file_authorized_user_bad_format(tmpdir):


def test__load_credentials_from_file_authorized_user_cloud_sdk():
with pytest.warns(UserWarning, matches='Cloud SDK'):
with pytest.warns(UserWarning, match='Cloud SDK'):
credentials, project_id = _default._load_credentials_from_file(
AUTHORIZED_USER_CLOUD_SDK_FILE)
assert isinstance(credentials, google.oauth2.credentials.Credentials)
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ deps =
flask
mock
oauth2client
pytest<5.0
pytest
pytest-cov
pytest-localserver
requests
Expand Down

0 comments on commit 938e5d9

Please sign in to comment.