Add __reduce__ method to exceptions commonly thrown, and start testing that exceptions can be pickled in test_serialization.
Prior to this, it was not possible to pickle a psutil exception (for error reporting), and this also made it impossible to send them through multiprocessing pipes. Code demonstrating the problem is available in #2272
Summary
Description
Add
__reduce__
method to exceptions commonly thrown, and start testing that exceptions can be pickled in test_serialization.Prior to this, it was not possible to pickle a psutil exception (for error reporting), and this also made it impossible to send them through multiprocessing pipes. Code demonstrating the problem is available in #2272