mirror of
https://github.com/wassname/ray.git
synced 2026-07-25 13:30:52 +08:00
[Core] Error info pubsub (Remove ray.errors API) (#9665)
This commit is contained in:
@@ -9,6 +9,7 @@ import subprocess
|
||||
|
||||
import ray
|
||||
from ray.cluster_utils import Cluster
|
||||
from ray.test_utils import init_error_pubsub
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
@@ -209,3 +210,10 @@ def two_node_cluster():
|
||||
# The code after the yield will run as teardown code.
|
||||
ray.shutdown()
|
||||
cluster.shutdown()
|
||||
|
||||
|
||||
@pytest.fixture()
|
||||
def error_pubsub():
|
||||
p = init_error_pubsub()
|
||||
yield p
|
||||
p.close()
|
||||
|
||||
Reference in New Issue
Block a user