We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae1b9f6 commit b5addb6Copy full SHA for b5addb6
tests/models/test_responses.py
@@ -1011,7 +1011,10 @@ def test_response_decode_text_using_autodetect():
1011
1012
assert response.status_code == 200
1013
assert response.reason_phrase == "OK"
1014
- assert response.encoding == "ISO-8859-1"
+ # The encoded byte string is consistent with either ISO-8859-1 or
1015
+ # WINDOWS-1252. Versions <6.0 of chardet claim the former, while chardet
1016
+ # 6.0 detects the latter.
1017
+ assert response.encoding in ("ISO-8859-1", "WINDOWS-1252")
1018
assert response.text == text
1019
1020
0 commit comments