Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ci][core] Remove test_ray_get_timeout_zero #35196

Merged
merged 1 commit into from
May 10, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 0 additions & 15 deletions python/ray/tests/test_advanced_2.py
Original file line number Diff line number Diff line change
Expand Up @@ -520,21 +520,6 @@ def test():
assert cluster_resources == {}


def test_ray_get_timeout_zero(monkeypatch):
# Check that ray.get(timeout=0) raises warnings on change of behavior.
# Removed when https://github.com/ray-project/ray/issues/28465 is resolved.
with pytest.warns(UserWarning):
ray.get(ray.put(1), timeout=0)

with monkeypatch.context() as m:
m.setenv("RAY_WARN_RAY_GET_TIMEOUT_ZERO", "0")
import warnings

with warnings.catch_warnings():
warnings.simplefilter("error")
ray.get(ray.put(1), timeout=0)


if __name__ == "__main__":
if os.environ.get("PARALLEL_CI"):
sys.exit(pytest.main(["-n", "auto", "--boxed", "-vs", __file__]))
Expand Down