mirror of
https://github.com/wassname/ray.git
synced 2026-07-11 11:42:42 +08:00
Initial implementation for pickle5 support (#5611)
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user