Skip to content

Conversation

@parthea
Copy link
Contributor

@parthea parthea commented Nov 6, 2025

This PR is needed to resolve the following errors when running tests with end of life Python versions and treating warnings as errors.

========================================================================= ERRORS ==========================================================================
____________________________________________ ERROR collecting tests/unit/gapic/orgpolicy_v2/test_org_policy.py ____________________________________________
tests/unit/gapic/orgpolicy_v2/test_org_policy.py:29: in <module>
    from google.api_core import api_core_version
.nox/unit-3-9-protobuf_implementation-python/lib/python3.9/site-packages/google/api_core/__init__.py:39: in <module>
    check_python_version(package="google.api_core")
.nox/unit-3-9-protobuf_implementation-python/lib/python3.9/site-packages/google/api_core/_python_version_support.py:252: in check_python_version
    warnings.warn(message, FutureWarning)
E   FutureWarning: You are using a Python version (3.9.16) past its end of life. Google will update google.api_core with critical bug fixes on a best-effort basis, but not with any other fixes or features. Please upgrade to the latest Python version, or at least Python 3.10, and then update google.api_core.
========================================================================= ERRORS ==========================================================================
____________________________________________ ERROR collecting tests/unit/gapic/orgpolicy_v2/test_org_policy.py ____________________________________________
tests/unit/gapic/orgpolicy_v2/test_org_policy.py:29: in <module>
    from google.api_core import api_core_version
.nox/unit-3-8-protobuf_implementation-python/lib/python3.8/site-packages/google/api_core/__init__.py:39: in <module>
    check_python_version(package="google.api_core")
.nox/unit-3-8-protobuf_implementation-python/lib/python3.8/site-packages/google/api_core/_python_version_support.py:237: in check_python_version
    warnings.warn(message, FutureWarning)
E   FutureWarning: You are using a non-supported Python version (3.8.16). Google will not post any further updates to google.api_core supporting this Python version. Please upgrade to the latest Python version, or at least Python 3.10, and then update google.api_core.

@parthea parthea requested review from a team as code owners November 6, 2025 16:53
@Linchin Linchin merged commit c1385b2 into main Nov 6, 2025
25 checks passed
@Linchin Linchin deleted the filter-warnings branch November 6, 2025 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants