Skip to content

Commit bb3b26d

Browse files
authored
tests: silence a warning from 'charset_normalizer' (#247)
1 parent bdbf889 commit bb3b26d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

google/api_core/retry.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,9 @@ def if_exception_type_predicate(exception):
114114
- :class:`google.api_core.exceptions.TooManyRequests` - HTTP 429
115115
- :class:`google.api_core.exceptions.ServiceUnavailable` - HTTP 503
116116
- :class:`requests.exceptions.ConnectionError`
117-
- :class:`requests.exceptions.ChunkedEncodingError` - The server declared
117+
- :class:`requests.exceptions.ChunkedEncodingError` - The server declared
118118
chunked encoding but sent an invalid chunk.
119-
- :class:`google.auth.exceptions.TransportError` - Used to indicate an
119+
- :class:`google.auth.exceptions.TransportError` - Used to indicate an
120120
error occurred during an HTTP request.
121121
"""
122122
# pylint: enable=invalid-name

tests/unit/test_exceptions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ def test_from_http_response_no_content():
102102

103103
def test_from_http_response_text_content():
104104
response = make_response(b"message")
105+
response.encoding = "UTF8" # suppress charset_normalizer warning
105106

106107
exception = exceptions.from_http_response(response)
107108

0 commit comments

Comments
 (0)