This repository was archived by the owner on Sep 21, 2023. It is now read-only.

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed
Original file line numberDiff line numberDiff line change
@@ -1077,7 +1077,7 @@ async def sample_delete_job_template():
10771077
metadata=metadata,
10781078
)
10791079

1080-
async def __aenter__(self):
1080+
async def __aenter__(self) -> "TranscoderServiceAsyncClient":
10811081
return self
10821082

10831083
async def __aexit__(self, exc_type, exc, tb):
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
],
99
"language": "PYTHON",
1010
"name": "google-cloud-video-transcoder",
11-
"version": "1.9.0"
11+
"version": "0.1.0"
1212
},
1313
"snippets": [
1414
{
Original file line numberDiff line numberDiff line change
@@ -1411,9 +1411,11 @@ async def test_list_jobs_async_pages():
14111411
RuntimeError,
14121412
)
14131413
pages = []
1414-
async for page_ in (
1414+
# Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch`
1415+
# See https://.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372
1416+
async for page_ in ( # pragma: no branch
14151417
await client.list_jobs(request={})
1416-
).pages: # pragma: no branch
1418+
).pages:
14171419
pages.append(page_)
14181420
for page_, token in zip(pages, ["abc", "def", "ghi", ""]):
14191421
assert page_.raw_page.next_page_token == token
@@ -2592,9 +2594,11 @@ async def test_list_job_templates_async_pages():
25922594
RuntimeError,
25932595
)
25942596
pages = []
2595-
async for page_ in (
2597+
# Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch`
2598+
# See https://.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372
2599+
async for page_ in ( # pragma: no branch
25962600
await client.list_job_templates(request={})
2597-
).pages: # pragma: no branch
2601+
).pages:
25982602
pages.append(page_)
25992603
for page_, token in zip(pages, ["abc", "def", "ghi", ""]):
26002604
assert page_.raw_page.next_page_token == token

0 commit comments

Comments
 (0)