Content-Length: 262258 | pFad | http://www.github.com/googleapis/python-cloud-core/commit/6831295a7c2c07cf338adb7995d9c079626a2b7e

E70 tests: unb0rk tests broken by requests 2.26.0. (#118) · googleapis/python-cloud-core@6831295 · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://www.github.com/googleapis/python-cloud-core/commit/6831295a7c2c07cf338adb7995d9c079626a2b7e

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy