Initial implementation for pickle5 support (#5611)

This commit is contained in:
Si-Yuan
2019-09-13 17:54:14 -07:00
committed by Philipp Moritz
parent fc9f03cd96
commit 4c964c0941
4 changed files with 677 additions and 43 deletions
+9 -4
View File
@@ -375,11 +375,16 @@ def test_ray_recursive_objects(ray_start_regular):
# Create a list of recursive objects.
recursive_objects = [lst, a1, a2, a3, d1]
# Check that exceptions are thrown when we serialize the recursive
# objects.
for obj in recursive_objects:
with pytest.raises(Exception):
if ray.worker.USE_NEW_SERIALIZER:
# Serialize the recursive objects.
for obj in recursive_objects:
ray.put(obj)
else:
# Check that exceptions are thrown when we serialize the recursive
# objects.
for obj in recursive_objects:
with pytest.raises(Exception):
ray.put(obj)
def test_passing_arguments_by_value_out_of_the_box(ray_start_regular):