Exclude test profiling info endpoint (#7030)

* Skip test_profiling_info_endpoint when pytest running locally

* Fixed formatting.

* Fixed the reason for skipping the test based on pr comments
This commit is contained in:
SangBin Cho
2020-02-03 16:49:03 -08:00
committed by GitHub
parent 42cbf801e1
commit ca5a9c6739
+4
View File
@@ -2,6 +2,7 @@ import os
import json
import grpc
import psutil
import pytest
import requests
import time
@@ -242,6 +243,9 @@ def test_raylet_info_endpoint(shutdown_only):
time.sleep(1)
@pytest.mark.skipif(
os.environ.get("TRAVIS") is None,
reason="This test requires password-less sudo due to py-spy requirement.")
def test_profiling_info_endpoint(shutdown_only):
ray.init(num_cpus=1)