Skip to content

Commit 8fe3f95

Browse files
chore: use gapic-generator-python 1.0.0 (#241)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 451250442 Source-Link: googleapis/googleapis@cca5e81 Source-Link: googleapis/googleapis-gen@0b219da Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMGIyMTlkYTE2MWE4YmRjYzNjNmY3YjJlZmNkODIxMDUxODJhMzBjYSJ9
1 parent 9c9fee1 commit 8fe3f95

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

packages/google-analytics-data/tests/unit/gapic/data_v1alpha/test_alpha_analytics_data.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,13 @@
1414
# limitations under the License.
1515
#
1616
import os
17-
import mock
17+
18+
# try/except added for compatibility with python < 3.8
19+
try:
20+
from unittest import mock
21+
from unittest.mock import AsyncMock
22+
except ImportError:
23+
import mock
1824

1925
import grpc
2026
from grpc.experimental import aio

packages/google-analytics-data/tests/unit/gapic/data_v1beta/test_beta_analytics_data.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,13 @@
1414
# limitations under the License.
1515
#
1616
import os
17-
import mock
17+
18+
# try/except added for compatibility with python < 3.8
19+
try:
20+
from unittest import mock
21+
from unittest.mock import AsyncMock
22+
except ImportError:
23+
import mock
1824

1925
import grpc
2026
from grpc.experimental import aio

0 commit comments

Comments
 (0)