Commit c1385b2
authored
chore: filter warnings for end of life Python (#14858)
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.
```1 parent 0747902 commit c1385b2
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
23 | 26 | | |
24 | 27 | | |
25 | 28 | | |
| |||
0 commit comments