Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: unb0rk tests broken by requests 2.26.0. #118

Merged
merged 1 commit into from
Jul 14, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions tests/unit/test__http.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,11 @@ def make_response(status=http_client.OK, content=b"", headers={}):
response._content = content
response.headers = headers
response.request = requests.Request()

# Work around requests 'charset_normalizer' idiocy.
# See https://github.com/googleapis/python-cloud-core/issues/117
response.encoding = "utf-8"

return response


Expand Down