Skip to content

Commit 8dc13e3

Browse files
committed
fix(coverage): Add no cover pragma for api_key import
1 parent 353b642 commit 8dc13e3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

google/cloud/client/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,9 @@
3434
import google.auth.api_key
3535

3636
HAS_GOOGLE_AUTH_API_KEY = True
37-
except ImportError:
38-
HAS_GOOGLE_AUTH_API_KEY = False
37+
except ImportError: # pragma: no cover
38+
HAS_GOOGLE_AUTH_API_KEY = False # pragma: no cover
39+
# TODO: Investigate adding a test for google.auth.api_key ImportError (https://github.com/googleapis/python-cloud-core/issues/334)
3940

4041

4142
_GOOGLE_AUTH_CREDENTIALS_HELP = (

0 commit comments

Comments
 (0)