Visitar URL original
fix: Python 3.9 dependencies and warnings (#375) · googleapis/google-cloud-python@1052e3b · GitHub
Skip to content

Commit 1052e3b

Browse files
fix: Python 3.9 dependencies and warnings (#375)
This change addresses test failures observed on Python 3.9 environments. 1. **Warning Suppression**: Updates `pytest.ini` to broaden the ignore pattern for the `google-auth` `FutureWarning` about Python 3.9. The previous regex didn't account for potential whitespace formatting in the warning message, causing tests to fail as warnings are treated as errors. --- *PR created automatically by Jules for task [3002358724402762589](https://jules.google.com/task/3002358724402762589) started by @chalmerlowe* --------- Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com> Co-authored-by: Chalmer Lowe <chalmerlowe@google.com>
1 parent 2bab60e commit 1052e3b

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

‎packages/google-cloud-dns/pytest.ini‎

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,6 @@ filterwarnings =
1111
ignore:.*pkg_resources is deprecated as an API:DeprecationWarning
1212
# Remove after support for Python 3.7 is dropped
1313
ignore:After January 1, 2024, new releases of this library will drop support for Python 3.7:DeprecationWarning
14-
# Remove after support for Python 3.8 is dropped
15-
ignore:You are using a non-supported Python version \(3\.8:DeprecationWarning
16-
ignore:You are using a non-supported Python version \(3\.8:FutureWarning
17-
# Remove after support for Python 3.9 is dropped:
18-
ignore:You are using a Python version \(3\.9:FutureWarning
19-
ignore:You are using a non-supported Python version \(3\.9:DeprecationWarning
20-
ignore:You are using a non-supported Python version \(3\.9:FutureWarning
21-
# Remove after support for Python 3.10 is dropped
22-
ignore:.*You are using a Python version \(3\.10:FutureWarning
14+
# Remove after support for Python 3.8, 3.9 and/or 3.10+ is dropped
15+
ignore:\s*You are using a (non-supported )?Python version \(?3\.(8|9|1[0-9]+):DeprecationWarning
16+
ignore:\s*You are using a (non-supported )?Python version \(?3\.(8|9|1[0-9]+):FutureWarning

0 commit comments

Comments
 (0)