mirror of
https://github.com/wassname/ray.git
synced 2026-07-21 12:50:45 +08:00
Change /tmp to platform-specific temporary directory (#7529)
This commit is contained in:
@@ -22,7 +22,8 @@ from ray.test_utils import (relevant_errors, wait_for_condition,
|
||||
|
||||
@pytest.fixture
|
||||
def ray_checkpointable_actor_cls(request):
|
||||
checkpoint_dir = "/tmp/ray_temp_checkpoint_dir/"
|
||||
checkpoint_dir = os.path.join(ray.utils.get_user_temp_dir(),
|
||||
"ray_temp_checkpoint_dir") + os.sep
|
||||
if not os.path.isdir(checkpoint_dir):
|
||||
os.mkdir(checkpoint_dir)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user