Skip to content

Commit 6831295

Browse files
authored
tests: unb0rk tests broken by requests 2.26.0. (#118)
Closes #117.
1 parent 6399b80 commit 6831295

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/unit/test__http.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,11 @@ def make_response(status=http_client.OK, content=b"", headers={}):
134134
response._content = content
135135
response.headers = headers
136136
response.request = requests.Request()
137+
138+
# Work around requests 'charset_normalizer' idiocy.
139+
# See https://github.com/googleapis/python-cloud-core/issues/117
140+
response.encoding = "utf-8"
141+
137142
return response
138143

139144

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy