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
Describe the bug
If a data structure contains a bytes object and that object is not valid UTF-8, DeepDiff complainsCan not produce a hash for <object> and ignores the object if ignore_order=True is set
{'values_changed': {'root[0]': {'new_value': b'\xc3(', 'old_value': b'\xc3\xb1'}}}
Can not produce a hash for root.Not counting this object.
'utf-8' codec can't decode byte 0xc3 in position 0: invalid continuation byte
Can not produce a hash for iterable root. 'utf-8' codec can't decode byte 0xc3 in position 0: invalid continuation byte
{'iterable_item_removed': {'root[0]': b'\xc3\xb1'}}
@wfaulk
Cool, I will look into DeepHash and handling bytes. Thanks for reporting the issue. Btw if you are interested and have time, PR's are always very welcome!
Thanks
Describe the bug
If a data structure contains a
bytes
object and that object is not valid UTF-8, DeepDiff complainsCan not produce a hash for <object>
and ignores the object ifignore_order=True
is setTo Reproduce
This produces:
Expected behavior
OS, DeepDiff version and Python version (please complete the following information):
The text was updated successfully, but these errors were encountered: