mirror of
https://github.com/wassname/ray.git
synced 2026-08-02 13:01:01 +08:00
Check in runtest.py that the correct version of cloudpickle is installed. (#421)
This commit is contained in:
committed by
Philipp Moritz
parent
1ad663b689
commit
0191d42751
@@ -102,6 +102,14 @@ DICT_OBJECTS = ([{obj: obj} for obj in PRIMITIVE_OBJECTS if obj.__hash__ is not
|
||||
|
||||
RAY_TEST_OBJECTS = BASE_OBJECTS + LIST_OBJECTS + TUPLE_OBJECTS + DICT_OBJECTS
|
||||
|
||||
# Check that the correct version of cloudpickle is installed.
|
||||
try:
|
||||
import cloudpickle
|
||||
cloudpickle.dumps(Point)
|
||||
except AttributeError:
|
||||
cloudpickle_command = "sudo pip install --upgrade git+git://github.com/cloudpipe/cloudpickle.git@0d225a4695f1f65ae1cbb2e0bbc145e10167cce4"
|
||||
raise Exception("You have an older version of cloudpickle that is not able to serialize namedtuples. Try running \n\n{}\n\n".format(cloudpickle_command))
|
||||
|
||||
class ObjStoreTest(unittest.TestCase):
|
||||
|
||||
# Test setting up object stores, transfering data between them and retrieving data to a client
|
||||
|
||||
Reference in New Issue
Block a user