Skip to content

Commit

Permalink
tests: unb0rk tests broken by requests 2.26.0. (#118)
Browse files Browse the repository at this point in the history
Closes #117.
  • Loading branch information
tseaver committed Jul 14, 2021
1 parent 6399b80 commit 6831295
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/unit/test__http.py
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

0 comments on commit 6831295

Please sign in to comment.