Skip to content

Commit c79130b

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

File tree

3 files changed

+21
-3
lines changed

3 files changed

+21
-3
lines changed

tests/unit/gapic/logging_v2/test_config_service_v2.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

tests/unit/gapic/logging_v2/test_logging_service_v2.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

tests/unit/gapic/logging_v2/test_metrics_service_v2.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)