mirror of
https://github.com/kevin1024/vcrpy.git
synced 2025-12-08 16:53:23 +00:00
Fix for Serialization errors with JSON adapter
This patch aims to fix the issue#222, where json data in request can not be serialized because of TypeError in py3
This commit is contained in:
committed by
Kevin McCarthy
parent
528c9e7b1a
commit
9daf301deb
@@ -50,7 +50,7 @@ def deserialize(cassette_string, serializer):
|
||||
|
||||
def serialize(cassette_dict, serializer):
|
||||
interactions = ([{
|
||||
'request': request._to_dict(),
|
||||
'request': compat.convert_to_unicode(request._to_dict()),
|
||||
'response': compat.convert_to_unicode(response),
|
||||
} for request, response in zip(
|
||||
cassette_dict['requests'],
|
||||
|
||||
Reference in New Issue
Block a user