mirror of
https://github.com/wassname/ray.git
synced 2026-09-11 12:43:20 +08:00
Bring cloudpickle inside the repository. (#1445)
* Bring cloudpickle version 0.5.2 inside the repo. * Use internal copy of cloudpickle everywhere. * Fix linting. * Import ordering. * Change __init__.py. * Set pickler in serialization context. * Don't check ray location.
This commit is contained in:
committed by
Philipp Moritz
parent
173f1d629a
commit
ab5d4a6010
@@ -441,15 +441,14 @@ class ConfigurationTest(unittest.TestCase):
|
||||
ray.worker.cleanup()
|
||||
|
||||
def testVersionMismatch(self):
|
||||
import cloudpickle
|
||||
cloudpickle_version = cloudpickle.__version__
|
||||
cloudpickle.__version__ = "fake cloudpickle version"
|
||||
ray_version = ray.__version__
|
||||
ray.__version__ = "fake ray version"
|
||||
|
||||
ray.init(num_workers=1, driver_mode=ray.SILENT_MODE)
|
||||
|
||||
wait_for_errors(b"version_mismatch", 1)
|
||||
|
||||
cloudpickle.__version__ = cloudpickle_version
|
||||
ray.__version__ = ray_version
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in New Issue
Block a user