Partially revert r65883 to let the tests pass.
I am working on the proper fix, which is to use the custom pickler in connection.send(),
instead of the standard pickle.dumps().
diff --git a/Lib/multiprocessing/managers.py b/Lib/multiprocessing/managers.py
index d1522c2..f895d62 100644
--- a/Lib/multiprocessing/managers.py
+++ b/Lib/multiprocessing/managers.py
@@ -45,6 +45,8 @@
return list, (list(obj),)
for view_type in view_types:
ForkingPickler.register(view_type, rebuild_as_list)
+ import copyreg
+ copyreg.pickle(view_type, rebuild_as_list)
#
# Type for identifying shared objects