mirror of
https://github.com/wassname/ray.git
synced 2026-07-11 07:12:59 +08:00
Change /tmp to platform-specific temporary directory (#7529)
This commit is contained in:
@@ -51,7 +51,7 @@ def test_project_root():
|
||||
project_definition = ray.projects.ProjectDefinition(path2)
|
||||
assert os.path.normpath(project_definition.root) == os.path.normpath(path)
|
||||
|
||||
path3 = "/tmp/"
|
||||
path3 = ray.utils.get_user_temp_dir() + os.sep
|
||||
with pytest.raises(ValueError):
|
||||
project_definition = ray.projects.ProjectDefinition(path3)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user