From 54d6eb769bc4bd5db240a8819e82c730d80c95cf Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Thu, 8 Jan 2026 15:09:09 -0500 Subject: [PATCH 1/2] chore: disable treat warnings as errors --- packages/google-cloud-org-policy/pytest.ini | 29 --------------------- 1 file changed, 29 deletions(-) delete mode 100644 packages/google-cloud-org-policy/pytest.ini diff --git a/packages/google-cloud-org-policy/pytest.ini b/packages/google-cloud-org-policy/pytest.ini deleted file mode 100644 index 0c504a466bba..000000000000 --- a/packages/google-cloud-org-policy/pytest.ini +++ /dev/null @@ -1,29 +0,0 @@ -[pytest] -filterwarnings = - # treat all warnings as errors - error - # Remove once https://github.com/protocolbuffers/protobuf/issues/12186 is fixed - ignore:.*custom tp_new.*in Python 3.14:DeprecationWarning - # Remove warning once https://github.com/grpc/grpc/issues/35974 is fixed - ignore:unclosed:ResourceWarning - # Remove after support for Python 3.7 is dropped - ignore:After January 1, 2024, new releases of this library will drop support for Python 3.7:DeprecationWarning - # Remove warning once https://github.com/googleapis/gapic-generator-python/issues/1939 is fixed - ignore:get_mtls_endpoint_and_cert_source is deprecated.:DeprecationWarning - # Added to suppress "DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html" - # Remove once the minimum supported version of googleapis-common-protos is 1.62.0 - ignore:.*pkg_resources.declare_namespace:DeprecationWarning - ignore:.*pkg_resources is deprecated as an API:DeprecationWarning - # Remove warning once https://github.com/googleapis/gapic-generator-python/issues/2046 is fixed - ignore:coroutine 'AsyncMockMixin._execute_mock_call' was never awaited:RuntimeWarning - # Remove warning once https://github.com/grpc/grpc/issues/35974 is fixed - ignore:unclosed:ResourceWarning - # Remove after support for Python 3.7 is dropped - ignore:After January 1, 2024, new releases of this library will drop support for Python 3.7:DeprecationWarning - # Warnings emitted when testing end of life Python versions - ignore:You are using a non-supported Python version:FutureWarning - ignore:.*Please upgrade to the latest Python version:FutureWarning - # Remove warning once https://github.com/googleapis/google-cloud-python/issues/12873 is fixed - ignore:Using the synchronous google.api_core.retry.Retry with asynchronous calls may lead to unexpected results:UserWarning - # Remove after support for `credentials_file` is dropped in `google-auth` and `gapic-generator` - ignore:The `credentials_file` argument is deprecated because of a potential security risk:DeprecationWarning From 1e4408c6afb15bc714f8ecc7c60bc0f336c1073a Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Thu, 8 Jan 2026 15:12:17 -0500 Subject: [PATCH 2/2] Also apply the same change to grpc-google-iam-v1 --- packages/grpc-google-iam-v1/pytest.ini | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 packages/grpc-google-iam-v1/pytest.ini diff --git a/packages/grpc-google-iam-v1/pytest.ini b/packages/grpc-google-iam-v1/pytest.ini deleted file mode 100644 index 9c2765b28e8f..000000000000 --- a/packages/grpc-google-iam-v1/pytest.ini +++ /dev/null @@ -1,14 +0,0 @@ -[pytest] -filterwarnings = - # treat all warnings as errors - error - # Remove once https://github.com/protocolbuffers/protobuf/issues/12186 is fixed - ignore:.*custom tp_new.*in Python 3.14:DeprecationWarning - # Remove warning once https://github.com/googleapis/gapic-generator-python/issues/1939 is fixed - ignore:get_mtls_endpoint_and_cert_source is deprecated.:DeprecationWarning - # Remove warning once https://github.com/googleapis/gapic-generator-python/issues/2046 is fixed - ignore:coroutine 'AsyncMockMixin._execute_mock_call' was never awaited:RuntimeWarning - # Remove warning once https://github.com/grpc/grpc/issues/35974 is fixed - ignore:unclosed:ResourceWarning - # Remove after support for Python 3.7 is dropped - ignore:After January 1, 2024, new releases of this library will drop support for Python 3.7:DeprecationWarning