Skip to content
This repository was archived by the owner on Mar 15, 2025. It is now read-only.

Commit a2769c6

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

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

owlbot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"google-cloud-org-policy"
3737
)
3838

39-
s.move(library, excludes=["setup.py", "README.rst", "docs/index.rst"])
39+
s.move(library, excludes=["setup.py", "README.rst", "docs/index.rst", "noxfile.py"])
4040

4141
s.remove_staging_dirs()
4242

tests/unit/gapic/orgpolicy_v2/test_org_policy.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)