You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Please either pass ignore_encoding_errors=True or pass the encoding via encodings=['utf-8', '...'].")
806
825
807
826
EXPECTED_MESSAGE2= (
808
-
"'utf-8' codec can't decode byte 0xbc in position 0: invalid start byte in 'p of flo...'. "
827
+
"'utf-8' codec can't decode byte 0xbc in position 0: invalid start byte in ' cup of flour'. "
809
828
"Please either pass ignore_encoding_errors=True or pass the encoding via encodings=['utf-8', '...'].")
810
829
830
+
EXPECTED_MESSAGE3= (
831
+
"'utf-8' codec can't decode byte 0xc3 in position 34: invalid continuation byte in '...up of potatos. Then ( cup of flour'. Please either pass ignore_encoding_errors=True or "
832
+
"pass the encoding via encodings=['utf-8', '...']."
(4, b"\xbc cup of flour", ['utf-8'], False, UnicodeDecodeError, EXPECTED_MESSAGE2),
816
840
(5, b"\xbc cup of flour", ['utf-8'], True, {b'\xbc cup of flour': '86ac12eb5e35db88cf93baca1d62098023b2d93d634e75fb4e37657e514f3d51'}, None),
817
841
(6, b"\xbc cup of flour", ['utf-8', 'latin-1'], False, {b'\xbc cup of flour': 'cfc354ae2232a8983bf59b2004f44fcb4036f57df1d08b9cde9950adea3f8d3e'}, None),
842
+
(7, b"First have a cup of potatos. Then \xc3\x28 cup of flour", None, False, UnicodeDecodeError, EXPECTED_MESSAGE3),
0 commit comments