Skip to content

Commit 77d0a0e

Browse files
scarabeusivbusunkim96
authored andcommitted
Use new pytest api to keep building with pytest 5 (#353)
1 parent 2ec4ee2 commit 77d0a0e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/google-auth/tests/test__default.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def test__load_credentials_from_file_authorized_user_bad_format(tmpdir):
9292

9393

9494
def test__load_credentials_from_file_authorized_user_cloud_sdk():
95-
with pytest.warns(UserWarning, matches='Cloud SDK'):
95+
with pytest.warns(UserWarning, match='Cloud SDK'):
9696
credentials, project_id = _default._load_credentials_from_file(
9797
AUTHORIZED_USER_CLOUD_SDK_FILE)
9898
assert isinstance(credentials, google.oauth2.credentials.Credentials)

packages/google-auth/tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ deps =
77
flask
88
mock
99
oauth2client
10-
pytest<5.0
10+
pytest
1111
pytest-cov
1212
pytest-localserver
1313
requests

0 commit comments

Comments
 (0)