Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f20b41a

Browse filesBrowse files
fix: [Many APIs] fix ValueError in test__validate_universe_domain (#12283)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 604699565 Source-Link: https://togithub.com/googleapis/googleapis/commit/cd3eabf5968bbc91685e2eae8efb099e4d55bb5c Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/01f69ba7a13d59e6f45e243359b91a6e896221f8 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRvY3VtZW50YWkvLk93bEJvdC55YW1sIiwiaCI6IjAxZjY5YmE3YTEzZDU5ZTZmNDVlMjQzMzU5YjkxYTZlODk2MjIxZjgifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRvbWFpbnMvLk93bEJvdC55YW1sIiwiaCI6IjAxZjY5YmE3YTEzZDU5ZTZmNDVlMjQzMzU5YjkxYTZlODk2MjIxZjgifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWVkZ2Vjb250YWluZXIvLk93bEJvdC55YW1sIiwiaCI6IjAxZjY5YmE3YTEzZDU5ZTZmNDVlMjQzMzU5YjkxYTZlODk2MjIxZjgifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWVkZ2VuZXR3b3JrLy5Pd2xCb3QueWFtbCIsImgiOiIwMWY2OWJhN2ExM2Q1OWU2ZjQ1ZTI0MzM1OWI5MWE2ZTg5NjIyMWY4In0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWVudGVycHJpc2Vrbm93bGVkZ2VncmFwaC8uT3dsQm90LnlhbWwiLCJoIjoiMDFmNjliYTdhMTNkNTllNmY0NWUyNDMzNTliOTFhNmU4OTYyMjFmOCJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWVzc2VudGlhbC1jb250YWN0cy8uT3dsQm90LnlhbWwiLCJoIjoiMDFmNjliYTdhMTNkNTllNmY0NWUyNDMzNTliOTFhNmU4OTYyMjFmOCJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWV2ZW50YXJjLXB1Ymxpc2hpbmcvLk93bEJvdC55YW1sIiwiaCI6IjAxZjY5YmE3YTEzZDU5ZTZmNDVlMjQzMzU5YjkxYTZlODk2MjIxZjgifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWV2ZW50YXJjLy5Pd2xCb3QueWFtbCIsImgiOiIwMWY2OWJhN2ExM2Q1OWU2ZjQ1ZTI0MzM1OWI5MWE2ZTg5NjIyMWY4In0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWZpbGVzdG9yZS8uT3dsQm90LnlhbWwiLCJoIjoiMDFmNjliYTdhMTNkNTllNmY0NWUyNDMzNTliOTFhNmU4OTYyMjFmOCJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWZ1bmN0aW9ucy8uT3dsQm90LnlhbWwiLCJoIjoiMDFmNjliYTdhMTNkNTllNmY0NWUyNDMzNTliOTFhNmU4OTYyMjFmOCJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXNlcnZpY2UtY29udHJvbC8uT3dsQm90LnlhbWwiLCJoIjoiMDFmNjliYTdhMTNkNTllNmY0NWUyNDMzNTliOTFhNmU4OTYyMjFmOCJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXNlcnZpY2UtbWFuYWdlbWVudC8uT3dsQm90LnlhbWwiLCJoIjoiMDFmNjliYTdhMTNkNTllNmY0NWUyNDMzNTliOTFhNmU4OTYyMjFmOCJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXNlcnZpY2UtdXNhZ2UvLk93bEJvdC55YW1sIiwiaCI6IjAxZjY5YmE3YTEzZDU5ZTZmNDVlMjQzMzU5YjkxYTZlODk2MjIxZjgifQ==
1 parent 38daeac commit f20b41a
Copy full SHA for f20b41a

File tree

Expand file treeCollapse file tree

24 files changed

+85
-84
lines changed
Filter options
Expand file treeCollapse file tree

24 files changed

+85
-84
lines changed

‎packages/google-cloud-documentai/google/cloud/documentai_v1beta3/types/document_service.py

Copy file name to clipboardExpand all lines: packages/google-cloud-documentai/google/cloud/documentai_v1beta3/types/document_service.py
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,8 +396,10 @@ class ListDocumentsRequest(proto.Message):
396396
https://google.aip.dev/160.
397397
398398
Currently support query strings are:
399+
------------------------------------
400+
401+
``SplitType=DATASET_SPLIT_TEST|DATASET_SPLIT_TRAIN|DATASET_SPLIT_UNASSIGNED``
399402
400-
- ``SplitType=DATASET_SPLIT_TEST|DATASET_SPLIT_TRAIN|DATASET_SPLIT_UNASSIGNED``
401403
- ``LabelingState=DOCUMENT_LABELED|DOCUMENT_UNLABELED|DOCUMENT_AUTO_LABELED``
402404
- ``DisplayName=\"file_name.pdf\"``
403405
- ``EntityType=abc/def``

‎packages/google-cloud-documentai/tests/unit/gapic/documentai_v1/test_document_processor_service.py

Copy file name to clipboardExpand all lines: packages/google-cloud-documentai/tests/unit/gapic/documentai_v1/test_document_processor_service.py
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -393,8 +393,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
393393
# TODO: This is needed to cater for older versions of google-auth
394394
# Make this test unconditional once the minimum supported version of
395395
# google-auth becomes 2.23.0 or higher.
396-
google_auth_major, google_auth_minor, _ = [
397-
int(part) for part in google.auth.__version__.split(".")
396+
google_auth_major, google_auth_minor = [
397+
int(part) for part in google.auth.__version__.split(".")[0:2]
398398
]
399399
if google_auth_major > 2 or (google_auth_major == 2 and google_auth_minor >= 23):
400400
credentials = ga_credentials.AnonymousCredentials()
@@ -412,8 +412,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
412412
#
413413
# TODO: Make this test unconditional once the minimum supported version of
414414
# google-api-core becomes 2.15.0 or higher.
415-
api_core_major, api_core_minor, _ = [
416-
int(part) for part in api_core_version.__version__.split(".")
415+
api_core_major, api_core_minor = [
416+
int(part) for part in api_core_version.__version__.split(".")[0:2]
417417
]
418418
if api_core_major > 2 or (api_core_major == 2 and api_core_minor >= 15):
419419
client = client_class(

‎packages/google-cloud-documentai/tests/unit/gapic/documentai_v1beta2/test_document_understanding_service.py

Copy file name to clipboardExpand all lines: packages/google-cloud-documentai/tests/unit/gapic/documentai_v1beta2/test_document_understanding_service.py
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -373,8 +373,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
373373
# TODO: This is needed to cater for older versions of google-auth
374374
# Make this test unconditional once the minimum supported version of
375375
# google-auth becomes 2.23.0 or higher.
376-
google_auth_major, google_auth_minor, _ = [
377-
int(part) for part in google.auth.__version__.split(".")
376+
google_auth_major, google_auth_minor = [
377+
int(part) for part in google.auth.__version__.split(".")[0:2]
378378
]
379379
if google_auth_major > 2 or (google_auth_major == 2 and google_auth_minor >= 23):
380380
credentials = ga_credentials.AnonymousCredentials()
@@ -392,8 +392,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
392392
#
393393
# TODO: Make this test unconditional once the minimum supported version of
394394
# google-api-core becomes 2.15.0 or higher.
395-
api_core_major, api_core_minor, _ = [
396-
int(part) for part in api_core_version.__version__.split(".")
395+
api_core_major, api_core_minor = [
396+
int(part) for part in api_core_version.__version__.split(".")[0:2]
397397
]
398398
if api_core_major > 2 or (api_core_major == 2 and api_core_minor >= 15):
399399
client = client_class(

‎packages/google-cloud-documentai/tests/unit/gapic/documentai_v1beta3/test_document_processor_service.py

Copy file name to clipboardExpand all lines: packages/google-cloud-documentai/tests/unit/gapic/documentai_v1beta3/test_document_processor_service.py
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -393,8 +393,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
393393
# TODO: This is needed to cater for older versions of google-auth
394394
# Make this test unconditional once the minimum supported version of
395395
# google-auth becomes 2.23.0 or higher.
396-
google_auth_major, google_auth_minor, _ = [
397-
int(part) for part in google.auth.__version__.split(".")
396+
google_auth_major, google_auth_minor = [
397+
int(part) for part in google.auth.__version__.split(".")[0:2]
398398
]
399399
if google_auth_major > 2 or (google_auth_major == 2 and google_auth_minor >= 23):
400400
credentials = ga_credentials.AnonymousCredentials()
@@ -412,8 +412,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
412412
#
413413
# TODO: Make this test unconditional once the minimum supported version of
414414
# google-api-core becomes 2.15.0 or higher.
415-
api_core_major, api_core_minor, _ = [
416-
int(part) for part in api_core_version.__version__.split(".")
415+
api_core_major, api_core_minor = [
416+
int(part) for part in api_core_version.__version__.split(".")[0:2]
417417
]
418418
if api_core_major > 2 or (api_core_major == 2 and api_core_minor >= 15):
419419
client = client_class(

‎packages/google-cloud-documentai/tests/unit/gapic/documentai_v1beta3/test_document_service.py

Copy file name to clipboardExpand all lines: packages/google-cloud-documentai/tests/unit/gapic/documentai_v1beta3/test_document_service.py
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -352,8 +352,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
352352
# TODO: This is needed to cater for older versions of google-auth
353353
# Make this test unconditional once the minimum supported version of
354354
# google-auth becomes 2.23.0 or higher.
355-
google_auth_major, google_auth_minor, _ = [
356-
int(part) for part in google.auth.__version__.split(".")
355+
google_auth_major, google_auth_minor = [
356+
int(part) for part in google.auth.__version__.split(".")[0:2]
357357
]
358358
if google_auth_major > 2 or (google_auth_major == 2 and google_auth_minor >= 23):
359359
credentials = ga_credentials.AnonymousCredentials()
@@ -371,8 +371,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
371371
#
372372
# TODO: Make this test unconditional once the minimum supported version of
373373
# google-api-core becomes 2.15.0 or higher.
374-
api_core_major, api_core_minor, _ = [
375-
int(part) for part in api_core_version.__version__.split(".")
374+
api_core_major, api_core_minor = [
375+
int(part) for part in api_core_version.__version__.split(".")[0:2]
376376
]
377377
if api_core_major > 2 or (api_core_major == 2 and api_core_minor >= 15):
378378
client = client_class(

‎packages/google-cloud-domains/tests/unit/gapic/domains_v1/test_domains.py

Copy file name to clipboardExpand all lines: packages/google-cloud-domains/tests/unit/gapic/domains_v1/test_domains.py
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -313,8 +313,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
313313
# TODO: This is needed to cater for older versions of google-auth
314314
# Make this test unconditional once the minimum supported version of
315315
# google-auth becomes 2.23.0 or higher.
316-
google_auth_major, google_auth_minor, _ = [
317-
int(part) for part in google.auth.__version__.split(".")
316+
google_auth_major, google_auth_minor = [
317+
int(part) for part in google.auth.__version__.split(".")[0:2]
318318
]
319319
if google_auth_major > 2 or (google_auth_major == 2 and google_auth_minor >= 23):
320320
credentials = ga_credentials.AnonymousCredentials()
@@ -332,8 +332,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
332332
#
333333
# TODO: Make this test unconditional once the minimum supported version of
334334
# google-api-core becomes 2.15.0 or higher.
335-
api_core_major, api_core_minor, _ = [
336-
int(part) for part in api_core_version.__version__.split(".")
335+
api_core_major, api_core_minor = [
336+
int(part) for part in api_core_version.__version__.split(".")[0:2]
337337
]
338338
if api_core_major > 2 or (api_core_major == 2 and api_core_minor >= 15):
339339
client = client_class(

‎packages/google-cloud-domains/tests/unit/gapic/domains_v1beta1/test_domains.py

Copy file name to clipboardExpand all lines: packages/google-cloud-domains/tests/unit/gapic/domains_v1beta1/test_domains.py
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -313,8 +313,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
313313
# TODO: This is needed to cater for older versions of google-auth
314314
# Make this test unconditional once the minimum supported version of
315315
# google-auth becomes 2.23.0 or higher.
316-
google_auth_major, google_auth_minor, _ = [
317-
int(part) for part in google.auth.__version__.split(".")
316+
google_auth_major, google_auth_minor = [
317+
int(part) for part in google.auth.__version__.split(".")[0:2]
318318
]
319319
if google_auth_major > 2 or (google_auth_major == 2 and google_auth_minor >= 23):
320320
credentials = ga_credentials.AnonymousCredentials()
@@ -332,8 +332,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
332332
#
333333
# TODO: Make this test unconditional once the minimum supported version of
334334
# google-api-core becomes 2.15.0 or higher.
335-
api_core_major, api_core_minor, _ = [
336-
int(part) for part in api_core_version.__version__.split(".")
335+
api_core_major, api_core_minor = [
336+
int(part) for part in api_core_version.__version__.split(".")[0:2]
337337
]
338338
if api_core_major > 2 or (api_core_major == 2 and api_core_minor >= 15):
339339
client = client_class(

‎packages/google-cloud-edgecontainer/tests/unit/gapic/edgecontainer_v1/test_edge_container.py

Copy file name to clipboardExpand all lines: packages/google-cloud-edgecontainer/tests/unit/gapic/edgecontainer_v1/test_edge_container.py
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -345,8 +345,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
345345
# TODO: This is needed to cater for older versions of google-auth
346346
# Make this test unconditional once the minimum supported version of
347347
# google-auth becomes 2.23.0 or higher.
348-
google_auth_major, google_auth_minor, _ = [
349-
int(part) for part in google.auth.__version__.split(".")
348+
google_auth_major, google_auth_minor = [
349+
int(part) for part in google.auth.__version__.split(".")[0:2]
350350
]
351351
if google_auth_major > 2 or (google_auth_major == 2 and google_auth_minor >= 23):
352352
credentials = ga_credentials.AnonymousCredentials()
@@ -364,8 +364,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
364364
#
365365
# TODO: Make this test unconditional once the minimum supported version of
366366
# google-api-core becomes 2.15.0 or higher.
367-
api_core_major, api_core_minor, _ = [
368-
int(part) for part in api_core_version.__version__.split(".")
367+
api_core_major, api_core_minor = [
368+
int(part) for part in api_core_version.__version__.split(".")[0:2]
369369
]
370370
if api_core_major > 2 or (api_core_major == 2 and api_core_minor >= 15):
371371
client = client_class(

‎packages/google-cloud-edgenetwork/google/cloud/edgenetwork_v1/types/resources.py

Copy file name to clipboardExpand all lines: packages/google-cloud-edgenetwork/google/cloud/edgenetwork_v1/types/resources.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -972,7 +972,7 @@ class BgpPeerStatus(proto.Message):
972972
Time this session has been up.
973973
Format:
974974
975-
14 years, 51 weeks, 6 days, 23 hours, 59
975+
14 years, 51 weeks, 6 days, 23 hours, 59
976976
minutes, 59 seconds
977977
uptime_seconds (int):
978978
Time this session has been up, in seconds.

‎packages/google-cloud-edgenetwork/tests/unit/gapic/edgenetwork_v1/test_edge_network.py

Copy file name to clipboardExpand all lines: packages/google-cloud-edgenetwork/tests/unit/gapic/edgenetwork_v1/test_edge_network.py
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -328,8 +328,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
328328
# TODO: This is needed to cater for older versions of google-auth
329329
# Make this test unconditional once the minimum supported version of
330330
# google-auth becomes 2.23.0 or higher.
331-
google_auth_major, google_auth_minor, _ = [
332-
int(part) for part in google.auth.__version__.split(".")
331+
google_auth_major, google_auth_minor = [
332+
int(part) for part in google.auth.__version__.split(".")[0:2]
333333
]
334334
if google_auth_major > 2 or (google_auth_major == 2 and google_auth_minor >= 23):
335335
credentials = ga_credentials.AnonymousCredentials()
@@ -347,8 +347,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
347347
#
348348
# TODO: Make this test unconditional once the minimum supported version of
349349
# google-api-core becomes 2.15.0 or higher.
350-
api_core_major, api_core_minor, _ = [
351-
int(part) for part in api_core_version.__version__.split(".")
350+
api_core_major, api_core_minor = [
351+
int(part) for part in api_core_version.__version__.split(".")[0:2]
352352
]
353353
if api_core_major > 2 or (api_core_major == 2 and api_core_minor >= 15):
354354
client = client_class(

‎packages/google-cloud-enterpriseknowledgegraph/google/cloud/enterpriseknowledgegraph_v1/types/service.py

Copy file name to clipboardExpand all lines: packages/google-cloud-enterpriseknowledgegraph/google/cloud/enterpriseknowledgegraph_v1/types/service.py
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,6 @@ class Options(proto.Message):
191191
- schema.org/addressLocality
192192
- schema.org/addressRegion
193193
- schema.org/addressCountry
194-
195194
Warning: processing will no longer be
196195
regionalized!
197196
"""

‎packages/google-cloud-enterpriseknowledgegraph/tests/unit/gapic/enterpriseknowledgegraph_v1/test_enterprise_knowledge_graph_service.py

Copy file name to clipboardExpand all lines: packages/google-cloud-enterpriseknowledgegraph/tests/unit/gapic/enterpriseknowledgegraph_v1/test_enterprise_knowledge_graph_service.py
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -383,8 +383,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
383383
# TODO: This is needed to cater for older versions of google-auth
384384
# Make this test unconditional once the minimum supported version of
385385
# google-auth becomes 2.23.0 or higher.
386-
google_auth_major, google_auth_minor, _ = [
387-
int(part) for part in google.auth.__version__.split(".")
386+
google_auth_major, google_auth_minor = [
387+
int(part) for part in google.auth.__version__.split(".")[0:2]
388388
]
389389
if google_auth_major > 2 or (google_auth_major == 2 and google_auth_minor >= 23):
390390
credentials = ga_credentials.AnonymousCredentials()
@@ -402,8 +402,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
402402
#
403403
# TODO: Make this test unconditional once the minimum supported version of
404404
# google-api-core becomes 2.15.0 or higher.
405-
api_core_major, api_core_minor, _ = [
406-
int(part) for part in api_core_version.__version__.split(".")
405+
api_core_major, api_core_minor = [
406+
int(part) for part in api_core_version.__version__.split(".")[0:2]
407407
]
408408
if api_core_major > 2 or (api_core_major == 2 and api_core_minor >= 15):
409409
client = client_class(

‎packages/google-cloud-essential-contacts/tests/unit/gapic/essential_contacts_v1/test_essential_contacts_service.py

Copy file name to clipboardExpand all lines: packages/google-cloud-essential-contacts/tests/unit/gapic/essential_contacts_v1/test_essential_contacts_service.py
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -360,8 +360,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
360360
# TODO: This is needed to cater for older versions of google-auth
361361
# Make this test unconditional once the minimum supported version of
362362
# google-auth becomes 2.23.0 or higher.
363-
google_auth_major, google_auth_minor, _ = [
364-
int(part) for part in google.auth.__version__.split(".")
363+
google_auth_major, google_auth_minor = [
364+
int(part) for part in google.auth.__version__.split(".")[0:2]
365365
]
366366
if google_auth_major > 2 or (google_auth_major == 2 and google_auth_minor >= 23):
367367
credentials = ga_credentials.AnonymousCredentials()
@@ -379,8 +379,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
379379
#
380380
# TODO: Make this test unconditional once the minimum supported version of
381381
# google-api-core becomes 2.15.0 or higher.
382-
api_core_major, api_core_minor, _ = [
383-
int(part) for part in api_core_version.__version__.split(".")
382+
api_core_major, api_core_minor = [
383+
int(part) for part in api_core_version.__version__.split(".")[0:2]
384384
]
385385
if api_core_major > 2 or (api_core_major == 2 and api_core_minor >= 15):
386386
client = client_class(

‎packages/google-cloud-eventarc-publishing/tests/unit/gapic/eventarc_publishing_v1/test_publisher.py

Copy file name to clipboardExpand all lines: packages/google-cloud-eventarc-publishing/tests/unit/gapic/eventarc_publishing_v1/test_publisher.py
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -308,8 +308,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
308308
# TODO: This is needed to cater for older versions of google-auth
309309
# Make this test unconditional once the minimum supported version of
310310
# google-auth becomes 2.23.0 or higher.
311-
google_auth_major, google_auth_minor, _ = [
312-
int(part) for part in google.auth.__version__.split(".")
311+
google_auth_major, google_auth_minor = [
312+
int(part) for part in google.auth.__version__.split(".")[0:2]
313313
]
314314
if google_auth_major > 2 or (google_auth_major == 2 and google_auth_minor >= 23):
315315
credentials = ga_credentials.AnonymousCredentials()
@@ -327,8 +327,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
327327
#
328328
# TODO: Make this test unconditional once the minimum supported version of
329329
# google-api-core becomes 2.15.0 or higher.
330-
api_core_major, api_core_minor, _ = [
331-
int(part) for part in api_core_version.__version__.split(".")
330+
api_core_major, api_core_minor = [
331+
int(part) for part in api_core_version.__version__.split(".")[0:2]
332332
]
333333
if api_core_major > 2 or (api_core_major == 2 and api_core_minor >= 15):
334334
client = client_class(

‎packages/google-cloud-eventarc/tests/unit/gapic/eventarc_v1/test_eventarc.py

Copy file name to clipboardExpand all lines: packages/google-cloud-eventarc/tests/unit/gapic/eventarc_v1/test_eventarc.py
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -332,8 +332,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
332332
# TODO: This is needed to cater for older versions of google-auth
333333
# Make this test unconditional once the minimum supported version of
334334
# google-auth becomes 2.23.0 or higher.
335-
google_auth_major, google_auth_minor, _ = [
336-
int(part) for part in google.auth.__version__.split(".")
335+
google_auth_major, google_auth_minor = [
336+
int(part) for part in google.auth.__version__.split(".")[0:2]
337337
]
338338
if google_auth_major > 2 or (google_auth_major == 2 and google_auth_minor >= 23):
339339
credentials = ga_credentials.AnonymousCredentials()
@@ -351,8 +351,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
351351
#
352352
# TODO: Make this test unconditional once the minimum supported version of
353353
# google-api-core becomes 2.15.0 or higher.
354-
api_core_major, api_core_minor, _ = [
355-
int(part) for part in api_core_version.__version__.split(".")
354+
api_core_major, api_core_minor = [
355+
int(part) for part in api_core_version.__version__.split(".")[0:2]
356356
]
357357
if api_core_major > 2 or (api_core_major == 2 and api_core_minor >= 15):
358358
client = client_class(

‎packages/google-cloud-filestore/tests/unit/gapic/filestore_v1/test_cloud_filestore_manager.py

Copy file name to clipboardExpand all lines: packages/google-cloud-filestore/tests/unit/gapic/filestore_v1/test_cloud_filestore_manager.py
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -374,8 +374,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
374374
# TODO: This is needed to cater for older versions of google-auth
375375
# Make this test unconditional once the minimum supported version of
376376
# google-auth becomes 2.23.0 or higher.
377-
google_auth_major, google_auth_minor, _ = [
378-
int(part) for part in google.auth.__version__.split(".")
377+
google_auth_major, google_auth_minor = [
378+
int(part) for part in google.auth.__version__.split(".")[0:2]
379379
]
380380
if google_auth_major > 2 or (google_auth_major == 2 and google_auth_minor >= 23):
381381
credentials = ga_credentials.AnonymousCredentials()
@@ -393,8 +393,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
393393
#
394394
# TODO: Make this test unconditional once the minimum supported version of
395395
# google-api-core becomes 2.15.0 or higher.
396-
api_core_major, api_core_minor, _ = [
397-
int(part) for part in api_core_version.__version__.split(".")
396+
api_core_major, api_core_minor = [
397+
int(part) for part in api_core_version.__version__.split(".")[0:2]
398398
]
399399
if api_core_major > 2 or (api_core_major == 2 and api_core_minor >= 15):
400400
client = client_class(

‎packages/google-cloud-functions/tests/unit/gapic/functions_v1/test_cloud_functions_service.py

Copy file name to clipboardExpand all lines: packages/google-cloud-functions/tests/unit/gapic/functions_v1/test_cloud_functions_service.py
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -377,8 +377,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
377377
# TODO: This is needed to cater for older versions of google-auth
378378
# Make this test unconditional once the minimum supported version of
379379
# google-auth becomes 2.23.0 or higher.
380-
google_auth_major, google_auth_minor, _ = [
381-
int(part) for part in google.auth.__version__.split(".")
380+
google_auth_major, google_auth_minor = [
381+
int(part) for part in google.auth.__version__.split(".")[0:2]
382382
]
383383
if google_auth_major > 2 or (google_auth_major == 2 and google_auth_minor >= 23):
384384
credentials = ga_credentials.AnonymousCredentials()
@@ -396,8 +396,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
396396
#
397397
# TODO: Make this test unconditional once the minimum supported version of
398398
# google-api-core becomes 2.15.0 or higher.
399-
api_core_major, api_core_minor, _ = [
400-
int(part) for part in api_core_version.__version__.split(".")
399+
api_core_major, api_core_minor = [
400+
int(part) for part in api_core_version.__version__.split(".")[0:2]
401401
]
402402
if api_core_major > 2 or (api_core_major == 2 and api_core_minor >= 15):
403403
client = client_class(

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.