MCPcopy
hub / github.com/ray-project/ray / test_runtime_install_error_message

Function test_runtime_install_error_message

python/ray/tests/test_client_proxy.py:255–266  ·  view source on GitHub ↗

Check that an error while preparing the runtime environment for the client server yields an actionable, clear error on the *client side*.

(call_ray_start)

Source from the content-addressed store, hash-verified

253 indirect=True,
254)
255def test_runtime_install_error_message(call_ray_start):
256 """
257 Check that an error while preparing the runtime environment for the client
258 server yields an actionable, clear error on the *client side*.
259 """
260 with pytest.raises(ConnectionAbortedError) as excinfo:
261 ray.client("localhost:25031").env({"pip": ["ray-this-doesnt-exist"]}).connect()
262 assert "No matching distribution found for ray-this-doesnt-exist" in str(
263 excinfo.value
264 ), str(excinfo.value)
265
266 ray.util.disconnect()
267
268
269@pytest.mark.skipif(

Callers

nothing calls this directly

Calls 4

envMethod · 0.80
connectMethod · 0.45
clientMethod · 0.45
disconnectMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…