Skip to content

Commit c2d2071

Browse files
author
Jon Wayne Parrott
authored
Replace usage of google.api.core with google.api_core (#4221)
* Remove api.core packages from google.cloud.core, make google.cloud.core depend on api_core. * s/google.api.core/google.api_core/g and nox updates * Fixing core tests, addressing review feedback * Fix bigquery
1 parent 77fb0f2 commit c2d2071

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

google/api_core/future/polling.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ def result(self, timeout=None):
100100
google.protobuf.Message: The Operation's result.
101101
102102
Raises:
103-
google.gax.GaxError: If the operation errors or if the timeout is
104-
reached before the operation completes.
103+
google.api_core.GoogleAPICallError: If the operation errors or if
104+
the timeout is reached before the operation completes.
105105
"""
106106
self._blocking_poll(timeout=timeout)
107107

@@ -120,7 +120,8 @@ def exception(self, timeout=None):
120120
If None, wait indefinitely.
121121
122122
Returns:
123-
Optional[google.gax.GaxError]: The operation's error.
123+
Optional[google.api_core.GoogleAPICallError]: The operation's
124+
error.
124125
"""
125126
self._blocking_poll()
126127
return self._exception

nox.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ def unit_tests(session, python_version):
4242
session.run(
4343
'py.test',
4444
'--quiet',
45-
'--cov=google.cloud',
4645
'--cov=google.api_core',
4746
'--cov=tests.unit',
4847
'--cov-append',

0 commit comments

Comments
 (0)