- Package Name: azure-servicebus
- Package Version: 7.0.0.0b4
- Operating System: Red Hat 4.8.5-39
- Python Version: 3.6.8
Describe the bug
When attempting to pickle.dump() an array of Message objects a TypeError is raised.
To Reproduce
Steps to reproduce the behavior:
- Attempt to pickle a Message object
Expected behavior
The object is pickled correctly
Screenshots
import pickle
from azure.servicebus import Message
msgs = [Message(body={"test"})]
pickle.dump(msgs, open("./dump", "wb"))
File "stringsource", line 2, in uamqp.c_uamqp.StringValue.__reduce_cython__
TypeError: no default __reduce__ due to non-trivial __cinit__
Describe the bug
When attempting to pickle.dump() an array of Message objects a TypeError is raised.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The object is pickled correctly
Screenshots