diff options
author | Tres Seaver <tseaver@palladion.com> | 2021-08-18 12:08:52 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-18 12:08:52 -0400 |
commit | bb3b26d54dbe6acca1e105039b2fb405253980c0 (patch) | |
tree | 110d472caae274e420b0f40de70f74228b3b7d9a | |
parent | bdbf889210b709d7c1945f2160bcba9161b4dd2e (diff) | |
download | python-api-core-bb3b26d54dbe6acca1e105039b2fb405253980c0.tar.gz |
tests: silence a warning from 'charset_normalizer' (#247)
-rw-r--r-- | google/api_core/retry.py | 4 | ||||
-rw-r--r-- | tests/unit/test_exceptions.py | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/google/api_core/retry.py b/google/api_core/retry.py index 44cd746..bd3a4a6 100644 --- a/google/api_core/retry.py +++ b/google/api_core/retry.py @@ -114,9 +114,9 @@ The following server errors are considered transient: - :class:`google.api_core.exceptions.TooManyRequests` - HTTP 429 - :class:`google.api_core.exceptions.ServiceUnavailable` - HTTP 503 - :class:`requests.exceptions.ConnectionError` -- :class:`requests.exceptions.ChunkedEncodingError` - The server declared +- :class:`requests.exceptions.ChunkedEncodingError` - The server declared chunked encoding but sent an invalid chunk. -- :class:`google.auth.exceptions.TransportError` - Used to indicate an +- :class:`google.auth.exceptions.TransportError` - Used to indicate an error occurred during an HTTP request. """ # pylint: enable=invalid-name diff --git a/tests/unit/test_exceptions.py b/tests/unit/test_exceptions.py index 1059945..e9709f2 100644 --- a/tests/unit/test_exceptions.py +++ b/tests/unit/test_exceptions.py @@ -102,6 +102,7 @@ def test_from_http_response_no_content(): def test_from_http_response_text_content(): response = make_response(b"message") + response.encoding = "UTF8" # suppress charset_normalizer warning exception = exceptions.from_http_response(response) |