From 2533f943c1c18f5b63ee1354e4b1b1eca1262270 Mon Sep 17 00:00:00 2001 From: Ruiyang Wang Date: Thu, 15 Jun 2023 15:02:38 -0700 Subject: [PATCH] fix lint Signed-off-by: Ruiyang Wang --- python/ray/tests/test_ray_init_2.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/ray/tests/test_ray_init_2.py b/python/ray/tests/test_ray_init_2.py index 7375c64b48c3..cd3e3f95f69c 100644 --- a/python/ray/tests/test_ray_init_2.py +++ b/python/ray/tests/test_ray_init_2.py @@ -124,7 +124,7 @@ def test_hosted_external_dashboard_url(override_url, shutdown_only, monkeypatch) expected_dashboard_url = "127.0.0.1:8265" elif "://" in override_url: # External dashboard url with https protocol included - expected_dashboard_url = override_url[override_url.index("://") + 3:] + expected_dashboard_url = override_url[override_url.index("://") + 3 :] else: # External dashboard url with no protocol expected_dashboard_url = override_url @@ -329,7 +329,7 @@ def test_get_ray_address_from_environment(monkeypatch): def test_temp_dir_must_be_absolute(shutdown_only): # This test fails with a relative path _temp_dir. with pytest.raises(ValueError): - ray.init(_temp_dir='relative_path') + ray.init(_temp_dir="relative_path") if __name__ == "__main__":