google-cloud-python icon indicating copy to clipboard operation
google-cloud-python copied to clipboard

Treat warnings as errors in testing

Open parthea opened this issue 2 years ago • 1 comments

Once the warnings are addressed that appear in build logs, we should enable warnings as errors to ensure that issues are addressed promptly.

The current warnings are for the protobuf dependency which is tracked here

========================================================================================================================= warnings summary ==========================================================================================================================
tests/unit/test_google_api_error_reason.py::test_error_reason
  <frozen importlib._bootstrap>:488: DeprecationWarning: Type google._upb._message.MessageMapContainer uses PyType_Spec with a metaclass that has custom tp_new. This is deprecated and will no longer be allowed in Python 3.14.

tests/unit/test_google_api_error_reason.py::test_error_reason
  <frozen importlib._bootstrap>:488: DeprecationWarning: Type google._upb._message.ScalarMapContainer uses PyType_Spec with a metaclass that has custom tp_new. This is deprecated and will no longer be allowed in Python 3.14.

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html

parthea avatar Nov 08 '23 17:11 parthea

Transferring this issue to google-cloud-python as the code for python-api-common-protos will be migrated there.

parthea avatar Dec 16 '24 16:12 parthea