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__":